Код:
D:\Xpectro\Documents\SAMP\gamemodes\td1.pwn(12766) : error 017: undefined symbol "strtok"
D:\Xpectro\Documents\SAMP\gamemodes\td1.pwn(12766) : error 033: array must be indexed (variable "cmd")
new string[256];
new playerdinheiro;
new giveplayer[MAX_PLAYER_NAME];
new playername[MAX_PLAYER_NAME];
new cmd[256];
new tmp[256];
new giveplayerid, moneys, idx;
new animid;
cmd = strtok(cmdtext, idx);
saka, й tudo nesse estilo, tipo, entao acho que deve ser tudo mesmo jeito de resolver ..
D:\Xpectro\Documents\SAMP\gamemodes\td1.pwn(13220) : error 017: undefined symbol "strtok"
D:\Xpectro\Documents\SAMP\gamemodes\td1.pwn(13220) : error 033: array must be indexed (variable "tmp")
if(strcmp(cmd, "/pagar", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(gPlayerLogged[playerid] == 0)
{
SendClientMessage(playerid, COLOR_GREY, " Vocк nгo estб logado.");
return 1;
}
tmp = strtok(cmdtext, idx);
D:\Xpectro\Documents\SAMP\gamemodes\td1.pwn(13228) : error 017: undefined symbol "strtok"
D:\Xpectro\Documents\SAMP\gamemodes\td1.pwn(13228) : error 033: array must be indexed (variable "tmp")
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD1, "USE: /pagar [ id ] [ quantidade ]");
return 1;
}
//giveplayerid = strval(tmp);
giveplayerid = ReturnUser(tmp);
tmp = strtok(cmdtext, idx);
D:\Xpectro\Documents\SAMP\gamemodes\td1.pwn(13307) : error 017: undefined symbol "strtok"
D:\Xpectro\Documents\SAMP\gamemodes\td1.pwn(13307) : error 033: array must be indexed (variable "tmp")
if(strcmp(cmd, "/caridade", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(gPlayerLogged[playerid] == 0)
{
SendClientMessage(playerid, COLOR_GREY, " Vocк nгo estб logado.");
return 1;
}
tmp = strtok(cmdtext, idx);
D:\Xpectro\Documents\SAMP\gamemodes\td1.pwn(13655) : error 017: undefined symbol "strtok"
D:\Xpectro\Documents\SAMP\gamemodes\td1.pwn(13655) : error 033: array must be indexed (variable "tmp")
D:\Xpectro\Documents\SAMP\gamemodes\td1.pwn(13698) : error 017: undefined symbol "strtok"
D:\Xpectro\Documents\SAMP\gamemodes\td1.pwn(13698) : error 033: array must be indexed (variable "tmp")
D:\Xpectro\Documents\SAMP\gamemodes\td1.pwn(13804) : error 017: undefined symbol "strtok"
D:\Xpectro\Documents\SAMP\gamemodes\td1.pwn(13804) : error 033: array must be indexed (variable "tmp")
D:\Xpectro\Documents\SAMP\gamemodes\td1.pwn(13850) : error 017: undefined symbol "strtok"
D:\Xpectro\Documents\SAMP\gamemodes\td1.pwn(13850) : error 033: array must be indexed (variable "tmp")
D:\Xpectro\Documents\SAMP\gamemodes\td1.pwn(13862) : error 017: undefined symbol "strtok"
D:\Xpectro\Documents\SAMP\gamemodes\td1.pwn(13862) : error 033: array must be indexed (variable "tmp")
D:\Xpectro\Documents\SAMP\gamemodes\td1.pwn(13918) : error 017: undefined symbol "strtok"
D:\Xpectro\Documents\SAMP\gamemodes\td1.pwn(13918) : error 033: array must be indexed (variable "tmp")
D:\Xpectro\Documents\SAMP\gamemodes\td1.pwn(14186) : error 017: undefined symbol "strtok"
D:\Xpectro\Documents\SAMP\gamemodes\td1.pwn(14186) : error 033: array must be indexed (variable "tmp")
D:\Xpectro\Documents\SAMP\gamemodes\td1.pwn(14212) : error 017: undefined symbol "strtok"
D:\Xpectro\Documents\SAMP\gamemodes\td1.pwn(14212) : error 033: array must be indexed (variable "tmp")
D:\Xpectro\Documents\SAMP\gamemodes\td1.pwn(14361) : error 017: undefined symbol "strtok"
D:\Xpectro\Documents\SAMP\gamemodes\td1.pwn(14361) : error 033: array must be indexed (variable "tmp")
Precisa mandar o resto ? se precisar, tranquilo.. eu mando.