SA-MP Forums

Go Back   SA-MP Forums > Non-English > Languages > Português/Portuguese

Reply
 
Thread Tools Display Modes
Old 05/03/2012, 01:17 AM   #1
MatheusNunes
Big Clucker
 
Join Date: Mar 2012
Posts: 118
Reputation: 0
Unhappy [Ajuda] Meu GM da erro na hora de compilar..

C:\Documents and Settings\Matheus\Desktop\BVR.pwn(2077) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Matheus\Desktop\BVR.pwn(2078) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Matheus\Desktop\BVR.pwn(2079) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Matheus\Desktop\BVR.pwn(2080) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Matheus\Desktop\BVR.pwn(2081) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Matheus\Desktop\BVR.pwn(2082) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Matheus\Desktop\BVR.pwn(2083) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Matheus\Desktop\BVR.pwn(2092) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Matheus\Desktop\BVR.pwn(2093) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Matheus\Desktop\BVR.pwn(2094) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Matheus\Desktop\BVR.pwn(2091) : warning 204: symbol is assigned a value that is never used: "index"
C:\Documents and Settings\Matheus\Desktop\BVR.pwn(2638) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Matheus\Desktop\BVR.pwn(2638) : error 033: array must be indexed (variable "cmd")
C:\Documents and Settings\Matheus\Desktop\BVR.pwn(2890) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Matheus\Desktop\BVR.pwn(2890) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\Matheus\Desktop\BVR.pwn(2928) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Matheus\Desktop\BVR.pwn(2928) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\Matheus\Desktop\BVR.pwn(2934) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Matheus\Desktop\BVR.pwn(2934) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\Matheus\Desktop\BVR.pwn(2971) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Matheus\Desktop\BVR.pwn(2971) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\Matheus\Desktop\BVR.pwn(2992) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Matheus\Desktop\BVR.pwn(2992) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\Matheus\Desktop\BVR.pwn(3061) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Matheus\Desktop\BVR.pwn(3061) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\Matheus\Desktop\BVR.pwn(3092) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Matheus\Desktop\BVR.pwn(3092) : error 033: array must be indexed (variable "tmp")

Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


26 Errors.
MatheusNunes is offline   Reply With Quote
Old 05/03/2012, 01:22 AM   #2
Đeagle
Huge Clucker
 
Đeagle's Avatar
 
Join Date: Feb 2012
Posts: 493
Reputation: 22
Default Re: Meu GM da erro na hora de compilar..

Coloque isso no final do seu GameMode

PHP Code:
stock strtok(const string[], &index)
{
new 
length strlen(string);
while ((
index length) && (string[index] <= ' '))
{
index++;
}

new 
offset index;
new 
result[20];

while ((
index length) && (string[index] > ' ') && ((index offset) < (sizeof(result) - 1)))
{
result[index offset] = string[index];
index++;
}
result[index offset] = EOS;
return 
result;

Se te ajudei, clique na estrelinha () ao lado, assim me dando reputation.
Đeagle is offline   Reply With Quote
Old 05/03/2012, 01:24 AM   #3
demonneni
Big Clucker
 
Join Date: Dec 2010
Posts: 94
Reputation: 12
Default Re: Meu GM da erro na hora de compilar..

coloque isto pra ver se resolve

public OnPlayerCommandText(playerid, cmdtext[])
{
new
cmd[15],idx;
cmd = strtok(cmdtext, idx);
demonneni is offline   Reply With Quote
Old 05/03/2012, 01:25 AM   #4
MatheusNunes
Big Clucker
 
Join Date: Mar 2012
Posts: 118
Reputation: 0
Default Re: Meu GM da erro na hora de compilar..

Coloquei e agora deu este erro:


C:\Documents and Settings\Matheus\Desktop\BVR.pwn(6062) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Matheus\Desktop\BVR.pwn(10087) : error 017: undefined symbol "set"
C:\Documents and Settings\Matheus\Desktop\BVR.pwn(10094) : error 017: undefined symbol "set"
C:\Documents and Settings\Matheus\Desktop\BVR.pwn(14219) : error 017: undefined symbol "StrToInt"
C:\Documents and Settings\Matheus\Desktop\BVR.pwn(14242) : error 017: undefined symbol "StrToInt"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.
MatheusNunes is offline   Reply With Quote
Old 05/03/2012, 01:27 AM   #5
Đeagle
Huge Clucker
 
Đeagle's Avatar
 
Join Date: Feb 2012
Posts: 493
Reputation: 22
Default Re: Meu GM da erro na hora de compilar..

Mande as linhas dos erros por favor.
Đeagle is offline   Reply With Quote
Old 05/03/2012, 01:30 AM   #6
demonneni
Big Clucker
 
Join Date: Dec 2010
Posts: 94
Reputation: 12
Default Re: Meu GM da erro na hora de compilar..

no final do gm
stock StrToInt(string[]) {
return strval(string);
}

stock set(dest[],source[]) {
new count = strlen(source);
new i=0;
for (i=0;i<count;i++) {
dest[i]=source[i];
}
dest[count]=0;
}
demonneni is offline   Reply With Quote
Old 05/03/2012, 01:32 AM   #7
MatheusNunes
Big Clucker
 
Join Date: Mar 2012
Posts: 118
Reputation: 0
Default Re: Meu GM da erro na hora de compilar..

6062: tmp = strtok(cmdtext, idx, strlen(cmdtext));
10087: set(nome, tmp);
10094: set(cor1,tmp);
14219: dini_IntSet(string, "Cor1", StrToInt(inputtext));
14242: dini_IntSet(string, "Cor2", StrToInt(inputtext));
MatheusNunes is offline   Reply With Quote
Old 05/03/2012, 01:34 AM   #8
MatheusNunes
Big Clucker
 
Join Date: Mar 2012
Posts: 118
Reputation: 0
Default Re: Meu GM da erro na hora de compilar..

demonneni,

Deu certo mais como tira o warning ?


C:\Documents and Settings\Matheus\Desktop\BVR.pwn(6062) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase

Header size: 4788 bytes
Code size: 592504 bytes
Data size: 776128 bytes
Stack/heap size: 16384 bytes; estimated max. usage: unknown, due to recursion
Total requirements: 1389804 bytes

1 Warning.
MatheusNunes is offline   Reply With Quote
Old 05/03/2012, 01:35 AM   #9
Đeagle
Huge Clucker
 
Đeagle's Avatar
 
Join Date: Feb 2012
Posts: 493
Reputation: 22
Default Re: Meu GM da erro na hora de compilar..

Mude a linha 6062 para

PHP Code:
tmp strtok(cmdtextidx); 
Đeagle is offline   Reply With Quote
Old 05/03/2012, 01:36 AM   #10
demonneni
Big Clucker
 
Join Date: Dec 2010
Posts: 94
Reputation: 12
Default Re: Meu GM da erro na hora de compilar..

mande o codigo
demonneni is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[AJUDA] Pessoal erro na hora de compilar caioenoiss Português/Portuguese 2 20/07/2011 09:46 PM
Erro na hora de compilar MarcBlack Português/Portuguese 7 05/01/2011 03:58 PM
[AJUDA] Pawno dá erro na hora de compilar ! Edu_Oliveira Português/Portuguese 22 21/12/2010 06:48 PM
[Ajuda] Erro na hora de compilar o GM renanzin Português/Portuguese 3 06/09/2010 03:30 PM


All times are GMT. The time now is 02:13 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.