20.07.2009, 03:00
Look at this code :
But in-game when i type /pizzajob, or /towtruckjob, it shows the message, then : SERVER: Unknown Command
Can you tell me why ?
Код:
public OnPlayerCommandText(playerid, cmdtext[]) if(strcmp("/pizzajob", cmdtext, true) == 0) { SendClientMessage(playerid,COLOR_RED, "HINT: Follow the marker on the map to get your pizzaboy job !"); SetPlayerCheckpoint(playerid, 2083.217, 2223.526, 11.023 ); return 0; } if(strcmp("/towtruckjob", cmdtext, true) == 0) { SendClientMessage(playerid,COLOR_RED, "HINT: Follow the marker on the map to get your Tow truck driver job !"); SetPlayerCheckpoint(playerid, 1942.5308, 2163.4653, 10.8203 ); return 1; } return 0; }
Can you tell me why ?