SA-MP Forums Archive
[Ajuda] Gamemode - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Gamemode (/showthread.php?tid=291812)



[Ajuda] Gamemode - BillieJoe - 21.10.2011

Gamemode 0.3c funciona em 0.3d? Se nгo, como converte?

Obrigado.


Re: [DUVIDA] Gamemode - Paramount. - 21.10.2011

Trocando a include a_samp.


Re: [DUVIDA] Gamemode - AppleX - 21.10.2011

Atualiza as includes.


Re: [DUVIDA] Gamemode - BillieJoe - 21.10.2011

Obrigado. Sу compilar com o pawno que vem no 0.3d entгo?


Re: [DUVIDA] Gamemode - Paramount. - 21.10.2011

Quote:
Originally Posted by BillieJoe
Посмотреть сообщение
Obrigado. Sу compilar com o pawno que vem no 0.3d entгo?
se vc usar a nova include que a sa-mp team lanзou sim, pois vai ter as novidades


Re: [DUVIDA] Gamemode - AppleX - 21.10.2011

Bбsicamente sim, a propуsito o pawno й o mesmo faz anos.


Re: [DUVIDA] Gamemode - BillieJoe - 21.10.2011

Erros strtok. Isso, sу quando mudei a include.

Код:
F:\GTA\GAMEMODES\Fort Carson Roleplay 0.3d\s.pwn(9417) : error 017: undefined symbol "strtok"
F:\GTA\GAMEMODES\Fort Carson Roleplay 0.3d\s.pwn(9417) : error 033: array must be indexed (variable "cmd")
F:\GTA\GAMEMODES\Fort Carson Roleplay 0.3d\s.pwn(9460) : error 017: undefined symbol "strtok"
F:\GTA\GAMEMODES\Fort Carson Roleplay 0.3d\s.pwn(9460) : error 033: array must be indexed (variable "tmp")
F:\GTA\GAMEMODES\Fort Carson Roleplay 0.3d\s.pwn(9682) : error 017: undefined symbol "strtok"
F:\GTA\GAMEMODES\Fort Carson Roleplay 0.3d\s.pwn(9682) : error 033: array must be indexed (variable "x_nr")
F:\GTA\GAMEMODES\Fort Carson Roleplay 0.3d\s.pwn(9691) : error 017: undefined symbol "strtok"
F:\GTA\GAMEMODES\Fort Carson Roleplay 0.3d\s.pwn(9691) : error 033: array must be indexed (variable "tmp")
F:\GTA\GAMEMODES\Fort Carson Roleplay 0.3d\s.pwn(9708) : error 017: undefined symbol "strtok"
F:\GTA\GAMEMODES\Fort Carson Roleplay 0.3d\s.pwn(9708) : error 033: array must be indexed (variable "tmp")
F:\GTA\GAMEMODES\Fort Carson Roleplay 0.3d\s.pwn(9727) : error 017: undefined symbol "strtok"
F:\GTA\GAMEMODES\Fort Carson Roleplay 0.3d\s.pwn(9727) : error 033: array must be indexed (variable "tmp")
F:\GTA\GAMEMODES\Fort Carson Roleplay 0.3d\s.pwn(9784) : error 017: undefined symbol "strtok"
F:\GTA\GAMEMODES\Fort Carson Roleplay 0.3d\s.pwn(9784) : error 033: array must be indexed (variable "tmp")
F:\GTA\GAMEMODES\Fort Carson Roleplay 0.3d\s.pwn(9799) : error 017: undefined symbol "strtok"
F:\GTA\GAMEMODES\Fort Carson Roleplay 0.3d\s.pwn(9799) : error 033: array must be indexed (variable "tmp")
F:\GTA\GAMEMODES\Fort Carson Roleplay 0.3d\s.pwn(9818) : error 017: undefined symbol "strtok"
F:\GTA\GAMEMODES\Fort Carson Roleplay 0.3d\s.pwn(9818) : error 033: array must be indexed (variable "tmp")
F:\GTA\GAMEMODES\Fort Carson Roleplay 0.3d\s.pwn(9853) : error 017: undefined symbol "strtok"
F:\GTA\GAMEMODES\Fort Carson Roleplay 0.3d\s.pwn(9853) : error 033: array must be indexed (variable "tmp")
F:\GTA\GAMEMODES\Fort Carson Roleplay 0.3d\s.pwn(9888) : error 017: undefined symbol "strtok"
F:\GTA\GAMEMODES\Fort Carson Roleplay 0.3d\s.pwn(9888) : error 033: array must be indexed (variable "tmp")
F:\GTA\GAMEMODES\Fort Carson Roleplay 0.3d\s.pwn(9970) : error 017: undefined symbol "strtok"
F:\GTA\GAMEMODES\Fort Carson Roleplay 0.3d\s.pwn(9970) : error 033: array must be indexed (variable "tmp")
F:\GTA\GAMEMODES\Fort Carson Roleplay 0.3d\s.pwn(10068) : error 017: undefined symbol "strtok"
F:\GTA\GAMEMODES\Fort Carson Roleplay 0.3d\s.pwn(10068) : error 033: array must be indexed (variable "tmp")

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


26 Errors.



Re: [DUVIDA] Gamemode - AppleX - 21.10.2011

https://sampwiki.blast.hk/wiki/Strtok


Re: [DUVIDA] Gamemode - Paramount. - 21.10.2011

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;
}



Re: [DUVIDA] Gamemode - BillieJoe - 21.10.2011

Quote:
Originally Posted by Paramount.
Посмотреть сообщение
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;
}
Coloco onde? sou novato em termos de programaзгo