[DUV/ID]tres duvidas
#9

cara deixa o admin

so me fala uma coisa

deu uns erros aki
pawn Код:
C:\DOCUME~1\bruck\Desktop\GMSTUNT\PRo.pwn(4914) : error 017: undefined symbol "cmd"
C:\DOCUME~1\bruck\Desktop\GMSTUNT\PRo.pwn(4918) : error 017: undefined symbol "strtok"
C:\DOCUME~1\bruck\Desktop\GMSTUNT\PRo.pwn(4918) : error 033: array must be indexed (variable "tmp")
C:\DOCUME~1\bruck\Desktop\GMSTUNT\PRo.pwn(4920) : error 001: expected token: ";", but found "if"
C:\DOCUME~1\bruck\Desktop\GMSTUNT\PRo.pwn(4927) : error 017: undefined symbol "A"
e as linhas sao do comando

pawn Код:
if(strcmp(cmd,"/object",true)==0)//uma linha do erro
{
new obj;
new tmp[256];// dois erros aki
tmp = strtok(cmdtext,idx);
obj=strval(tmp)
if(!strlen(tmp))//erro aki tbm
{
SendClientMessage(playerid, COR_LARANJA, "Use: /object [id objeto]");
return 1;
}
new Float:X, Float:Y, Float:Z;
GetPlayerPos(playerid,X,Y,Z);
CreateObject(obj,X,Y,Z,A);//e aki tbm
return 1;
}

eu tava pensando essa linhas nao sao antes dos comandos ?

pawn Код:
new obj;
new tmp[256];
tmp = strtok(cmdtext,idx);
obj=strval(tmp)
se ja exite essas linhas nao prescisa bota ?
Reply


Messages In This Thread
[DUV/ID]tres duvidas - by irffri1234 - 27.03.2010, 17:59
Re: [DUV/ID]tres duvidas - by Ambrуsio - 27.03.2010, 20:34
Re: [DUV/ID]tres duvidas - by irffri1234 - 27.03.2010, 21:20
Re: [DUV/ID]tres duvidas - by Guilherme_Canani - 27.03.2010, 21:40
Re: [DUV/ID]tres duvidas - by irffri1234 - 27.03.2010, 21:43
Re: [DUV/ID]tres duvidas - by Guilherme_Canani - 27.03.2010, 21:46
Re: [DUV/ID]tres duvidas - by irffri1234 - 27.03.2010, 21:48
Re: [DUV/ID]tres duvidas - by irffri1234 - 27.03.2010, 21:51
Re: [DUV/ID]tres duvidas - by irffri1234 - 27.03.2010, 21:57
Re: [DUV/ID]tres duvidas - by Guilherme_Canani - 28.03.2010, 00:39

Forum Jump:


Users browsing this thread: 2 Guest(s)