14.10.2009, 18:53
i made now one teleport and i want to make a command like /teles and then you get: /da-Desert Airstrip Terror
i got this:
when i do compile i get 2 errors:
C:\Users\Onno\Documents\da\gamemodes\saa.pwn(99) : error 055: start of function body without function header
C:\Users\Onno\Documents\da\gamemodes\saa.pwn(100) : error 010: invalid function or declaration
_________________________________________________a nyone knows what to do??
i got this:
Код:
public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/da", cmdtext, true, 10) == 0) { SetPlayerPos(playerid, 2075.3584,1312.7797,10.6719); SetPlayerInterior(playerid, 0); return 1; } return 0; } { if (strcmp("/teles", cmdtext, true, 10) ==0) { SendClientMassage(playerid,"/da-Desert Airstrip terror");
when i do compile i get 2 errors:
C:\Users\Onno\Documents\da\gamemodes\saa.pwn(99) : error 055: start of function body without function header
C:\Users\Onno\Documents\da\gamemodes\saa.pwn(100) : error 010: invalid function or declaration
_________________________________________________a nyone knows what to do??