02.11.2011, 15:18
For the warning, it tells you that you should return a value to "OnPlayerCommandText" e.g: false. For the error, you forget to open a block for the "OnPlayerCommandText" callback.
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/city", cmdtext, true, 10) == 0)
{
SetPlayerPos(playerid, -2912.19921875,-985,11);
GameTextForPlayer(playerid, "Drive Slowly",5000,5);
return 1;
}
if (strcmp("/skcr", cmdtext, true, 10) == 0)
{
SetPlayerPos(playerid, -2516.3000488281,-1111.0999755859,991.20001220703);
GameTextForPlayer(playerid, "Sky Cage Road",5000,5);
}
return false;
}