Pomoc=cp

Započeo Ante_Dracar aka Lopa, Jul 11, 2010, 19:50:02 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

ovako,napravio sam posao i sad kada aktiviram CISTENJE i mogu proc sa bilo kojim autom kros CHECKPOINTE a mene zanima kako da mogu npr proz kroz njeih samo sa jednim autom npr ELEGY-om,znaci kada prodjem sa bilo kojim autom ako nije elegy da mi ne ide na 2 CHECKPOINT,hvala unaprjed,ukoliko treba pojasnit detaljnije samo recite,hvala...


public OnPlayerCommandText(playerid,cmdtext[])
{
if(strcmp(cmdtext, "/ciscenje", true) == 0)
{
SetPlayerCheckPoint(playerid, Float:x, Float:y, Float:z, Float:size);
return 1;
}
return 0;
}

public OnPlayerEnterCheckpoint(playerid)
{
if(IsPlayerInAnyVehicle(playerid))
{
if(IsPlayerInVehicle(playerid, 522))
{
SetPlayerCheckPoint(playerid, Float:x, Float:y, Float:z, Float:size);
}
else SendClientMessage(playerid, 0xFF0000BB, "Nisu u NRG-u.");
}
else SendClientMessage(playerid, 0xFF0000BB, "Trebas biti u vozilu.");
return 1;
}


Ovo ti napravi checkpoint kad igrac napise /ciscenje i kad prode kroz ako nije u vozilu napise mu da treba biti u vozilu. A ako prode u vozila a nije NRG-500 onda mu pise da treba biti u NRG-u. A ako je u NRG-u onda napravi novi checkpoint. To bi trebalo radit. Nisam testirao.
Poslednja Izmena: Jul 11, 2010, 20:06:54 POSLE PODNE od WhiteBurn

Last nick: Paradox

evo imam 6 erroera pa ako mi mos pomoc,komanda...

//-----------------------------------
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/ciscenje", true) == 0)
{
SetPlayerCheckPoint(playerid,-2643.2688,1372.4896,6.7231,10.0,:size);
return 1;
}
return 0;
}

public OnPlayerEnterCheckpoint(playerid)
{
if(IsPlayerInAnyVehicle(playerid))
{
if(IsPlayerInVehicle(playerid, 522))
{
SetPlayerCheckPoint(playerid,-1735.0685,-130.7423,3.5547,10.0,:size);
}
else SendClientMessage(playerid, 0xFF0000BB, "Nisu u NRG-u.");
}
else SendClientMessage(playerid, 0xFF0000BB, "Trebas biti u vozilu.");
return 1;
}




i evo errori.


C:\Users\Bill Gates\Desktop\CroMafia\gamemodes\cmr.pwn(10697) : error 029: invalid expression, assumed zero
C:\Users\Bill Gates\Desktop\CroMafia\gamemodes\cmr.pwn(10697) : error 029: invalid expression, assumed zero
C:\Users\Bill Gates\Desktop\CroMafia\gamemodes\cmr.pwn(10701) : error 017: undefined symbol "SetPlayerCheckPoint"
C:\Users\Bill Gates\Desktop\CroMafia\gamemodes\cmr.pwn(10701) : error 017: undefined symbol "size"
C:\Users\Bill Gates\Desktop\CroMafia\gamemodes\cmr.pwn(10701) : error 029: invalid expression, assumed zero
C:\Users\Bill Gates\Desktop\CroMafia\gamemodes\cmr.pwn(10701) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664           Copyright (c) 1997-2006, ITB CompuPhase


6 Errors.


nisi stavio velicinu cp-a ...

SetPlayerCheckPoint(playerid,-2643.2688,1372.4896,6.7231,10.0,:size);

ovo crveno moras promjeniti ... u brojke ... 5.0 probaj ...

SetPlayerCheckPoint(playerid,-2643.2688,1372.4896,6.7231,10.0,5.0);
Mape:

))-((

Filescripte:

Dexy's Speedo/Fuel

Gamemodes:

))-((




SampArena FOREVER <3