Jump to content
  • 0

Problema GM Pro-Gaming


Mirel

Question

Salut am acest GM: Este foarte foarte frumos,dar nul pot complima si sunt incepator.Va rog frumos.

http://www.sa-mp.ro/forum/index.php?topic=26944.0

C:\Users\Mirel\Desktop\Pro-Gaming\gamemodes\PG.pwn(62) : warning 201: redefinition of constant/macro (symbol "COLOR_RED")
C:\Users\Mirel\Desktop\Pro-Gaming\gamemodes\PG.pwn(15299) : error 017: undefined symbol "strtok"
C:\Users\Mirel\Desktop\Pro-Gaming\gamemodes\PG.pwn(15299) : error 033: array must be indexed (variable "cmd")
C:\Users\Mirel\Desktop\Pro-Gaming\gamemodes\PG.pwn(15374) : error 017: undefined symbol "strtok"
C:\Users\Mirel\Desktop\Pro-Gaming\gamemodes\PG.pwn(15374) : error 033: array must be indexed (variable "tmp")
C:\Users\Mirel\Desktop\Pro-Gaming\gamemodes\PG.pwn(15502) : error 017: undefined symbol "strtok"
C:\Users\Mirel\Desktop\Pro-Gaming\gamemodes\PG.pwn(15502) : error 033: array must be indexed (variable "tmp")
C:\Users\Mirel\Desktop\Pro-Gaming\gamemodes\PG.pwn(15533) : error 017: undefined symbol "strtok"
C:\Users\Mirel\Desktop\Pro-Gaming\gamemodes\PG.pwn(15533) : error 033: array must be indexed (variable "tmp")
C:\Users\Mirel\Desktop\Pro-Gaming\gamemodes\PG.pwn(15640) : error 017: undefined symbol "strtok"
C:\Users\Mirel\Desktop\Pro-Gaming\gamemodes\PG.pwn(15640) : error 033: array must be indexed (variable "tmp")
C:\Users\Mirel\Desktop\Pro-Gaming\gamemodes\PG.pwn(15705) : error 017: undefined symbol "strtok"
C:\Users\Mirel\Desktop\Pro-Gaming\gamemodes\PG.pwn(15705) : error 033: array must be indexed (variable "tmp")
C:\Users\Mirel\Desktop\Pro-Gaming\gamemodes\PG.pwn(15767) : error 017: undefined symbol "strtok"
C:\Users\Mirel\Desktop\Pro-Gaming\gamemodes\PG.pwn(15767) : error 033: array must be indexed (variable "tmp")
C:\Users\Mirel\Desktop\Pro-Gaming\gamemodes\PG.pwn(15790) : error 017: undefined symbol "strtok"
C:\Users\Mirel\Desktop\Pro-Gaming\gamemodes\PG.pwn(15790) : error 033: array must be indexed (variable "tmp")
C:\Users\Mirel\Desktop\Pro-Gaming\gamemodes\PG.pwn(15797) : error 017: undefined symbol "strtok"
C:\Users\Mirel\Desktop\Pro-Gaming\gamemodes\PG.pwn(15797) : error 033: array must be indexed (variable "tmp")
C:\Users\Mirel\Desktop\Pro-Gaming\gamemodes\PG.pwn(15820) : error 017: undefined symbol "strtok"
C:\Users\Mirel\Desktop\Pro-Gaming\gamemodes\PG.pwn(15820) : error 033: array must be indexed (variable "tmp")
C:\Users\Mirel\Desktop\Pro-Gaming\gamemodes\PG.pwn(15829) : error 017: undefined symbol "strtok"
C:\Users\Mirel\Desktop\Pro-Gaming\gamemodes\PG.pwn(15829) : error 033: array must be indexed (variable "tmp")
C:\Users\Mirel\Desktop\Pro-Gaming\gamemodes\PG.pwn(15882) : error 017: undefined symbol "strtok"
C:\Users\Mirel\Desktop\Pro-Gaming\gamemodes\PG.pwn(15882) : error 033: array must be indexed (variable "tmp")
C:\Users\Mirel\Desktop\Pro-Gaming\gamemodes\PG.pwn(15906) : error 017: undefined symbol "strtok"
C:\Users\Mirel\Desktop\Pro-Gaming\gamemodes\PG.pwn(15906) : error 033: array must be indexed (variable "tmp")

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


26 Errors.

Va rog mult de tot

Link to comment
Share on other sites

13 answers to this question

Recommended Posts

[pawn]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;

}[/pawn]  Pune asta la sfarsitul gm-ului.

Y!M: [email protected] ( help-center sau comenzi )

Link to comment
Share on other sites

Pui deasupra:

[pawn]public split(const strsrc[], strdest[][], delimiter)[/pawn]

[pawn]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;

}[/pawn]

Si la forward-uri pui:

[pawn]forward strtok(const string[],&index);[/pawn]

Vrei ceva? [email protected]

Link to comment
Share on other sites

Poftim prietene,adaugi asta jos detot la sfarsitul GM-ului si-ti va merge testat de mine.

[pawn]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;

}[/pawn]

Link to comment
Share on other sites

Mie nu mia mers asa , Am incercat altcumva:

Pui deasupra:

[pawn]public split(const strsrc[], strdest[][], delimiter)[/pawn]

Asta:

[pawn]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;

}[/pawn]

Si gata :)

Vrei ceva? [email protected]

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.