[DUV] Me ajudem com esse comando
#1

Код:
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;
}
Esse й o comando que й pra setar o Team do Player pra Recruta
No comeзo do GM eu botei
Код:
#define Recruta 1
Ele nao ta dando erro mas nao funfa o
Код:
if( IsPlayerConnected(playerid))
Que eu acho que й pra ser tipo /setrecruta id
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.
Linha 202:
pawn Код:
tmp = strtok(cmdtext, idx);
Reply


Messages In This Thread
[DUV] Me ajudem com esse comando - by gabrielzin - 13.06.2010, 19:30
Re: [DUV] Me ajudem com esse comando - by Rick_DR - 13.06.2010, 19:57
Re: [DUV] Me ajudem com esse comando - by Dr_Pawno - 13.06.2010, 20:04
Re: [DUV] Me ajudem com esse comando - by Rick_DR - 13.06.2010, 20:07
Re: [DUV] Me ajudem com esse comando - by gabrielzin - 13.06.2010, 20:09
Re: [DUV] Me ajudem com esse comando - by Dr_Pawno - 13.06.2010, 20:11
Re: [DUV] Me ajudem com esse comando - by Rick_DR - 13.06.2010, 20:12
Re: [DUV] Me ajudem com esse comando - by gabrielzin - 13.06.2010, 20:15
Re: [DUV] Me ajudem com esse comando - by Rick_DR - 14.06.2010, 12:21
Re: [DUV] Me ajudem com esse comando - by BiieL - 14.06.2010, 16:35

Forum Jump:


Users browsing this thread: 2 Guest(s)