Jump to content
  • 0

Ajutor la o cmd


KiLLeRZoNE

Question

salut am comanda asta

[pawn] if(strcmp(cmdtext,"/up",true)==0)

{

new Float:X, Float:Y, Float:Z;

new tmp[256];

tmp = strtok(cmdtext , hx);

GetPlayerPos( playerid, X, Y, Z );

SetPlayerPos(playerid,X,Y,Z+strval(tmp));

return 1;

}[/pawn]

si imi da eroarea asta

D:\zonne 0.3d\gamemodes\romania.pwn(1821) : error 017: undefined symbol "hx"

Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

1 Error.

<img src="http://s15.postimage.org/q6s3fuq4r/snapshotoronthefolldsangdsa.png">

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

[pawn] if(strcmp(cmd, "/up", true) == 0)

{

    if(IsPlayerConnected(playerid))

    {

if (PlayerInfo[playerid][pAdmin] >= 1)

{

new Float:slx, Float:sly, Float:slz;

GetPlayerPos(playerid, slx, sly, slz);

SetPlayerPos(playerid, slx, sly, slz+2);

return 1;

}

else

{

SendClientMessage(playerid, COLOR_GRAD1, " Tu nu esti admin. ");

                                  SendClientMessage(playerid, COLOR_GRAD1, " Nu mai incerca comenzile. ");

}

}

return 1;

}[/pawn]

Incearca acum :D , trebuia cateva modificari  :cool: .

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.