13.06.2010, 19:30
Код:
if(strcmp(cmdtext,"/setrecruta",true)==0 && IsPlayerAdmin(playerid)) { if( IsPlayerConnected(playerid)) SetPlayerTeam(playerid, 1); SetPlayerSkin(playerid, 81); SetPlayerPos(playerid,216.3093,1874.0894,17.6406); return 1; }
No comeзo do GM eu botei
Код:
#define Recruta 1
Код:
if( IsPlayerConnected(playerid))
Se nao for assim me falem como eh
E como boto pra so se o player for de tal time ele podera executar tal comando
Erros:
Код:
D:\Gabriel\SAMP SERVER\filterscripts\exercito.pwn(202) : error 017: undefined symbol "strtok" D:\Gabriel\SAMP SERVER\filterscripts\exercito.pwn(202) : error 033: array must be indexed (variable "tmp") Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 2 Errors.
pawn Код:
tmp = strtok(cmdtext, idx);