18.10.2011, 11:36
I'm new to scripting and would like to know why I'm getting the following error:
error 017: undefined symbol "cmdtxt"
this is my teleport command:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/grove", cmdtext, true, 10) == 0)
{
SetPlayerPos(playerid,0,2495.3669,-1687.3278,13.5156,5.6401); //
SetPlayerInterior(playerid, 0);
return 1;
}
if (strcmp ("/stadium", cmdtxt, true, 10) == 0)
{
SetPlayerInterior(playerid, 4);
SetCameraBehindPlayer(playerid);
SetPlayerPos(playerid, -1424.9319,-664.5869,1059.8585);
SetPlayerFacingAngle(playerid, 0);
SendClientMessage(playerid, 0x7F00FFBE, "Welcome to Dirt Bike Stadium");
return 1;
}
return 0;
}
before I had the 2nd teleport command it worked fine, I would like to know how to properly put a 2nd teleport command here.
help is much appreciated thanks
error 017: undefined symbol "cmdtxt"
this is my teleport command:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/grove", cmdtext, true, 10) == 0)
{
SetPlayerPos(playerid,0,2495.3669,-1687.3278,13.5156,5.6401); //
SetPlayerInterior(playerid, 0);
return 1;
}
if (strcmp ("/stadium", cmdtxt, true, 10) == 0)
{
SetPlayerInterior(playerid, 4);
SetCameraBehindPlayer(playerid);
SetPlayerPos(playerid, -1424.9319,-664.5869,1059.8585);
SetPlayerFacingAngle(playerid, 0);
SendClientMessage(playerid, 0x7F00FFBE, "Welcome to Dirt Bike Stadium");
return 1;
}
return 0;
}
before I had the 2nd teleport command it worked fine, I would like to know how to properly put a 2nd teleport command here.
help is much appreciated thanks