16.04.2011, 18:34
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/desert") == 0)
{
SetPlayerPos(playerid, 405.114,2441.080,16.312);
return 1;
}
return 0;
else {
if(strcmp(cmdtext, "/myteleport") == 1)
SetPlayerPos(playerid, -1967.8365, 2956.9823, 12.9375);
return 1;
}
return 0;
}
it say one error but i dont know what
{
if(strcmp(cmdtext, "/desert") == 0)
{
SetPlayerPos(playerid, 405.114,2441.080,16.312);
return 1;
}
return 0;
else {
if(strcmp(cmdtext, "/myteleport") == 1)
SetPlayerPos(playerid, -1967.8365, 2956.9823, 12.9375);
return 1;
}
return 0;
}
it say one error but i dont know what