09.09.2011, 16:29
pawn Код:
C:\Documents and Settings\Administrador\Desktop\BNL\Gamemode NV\gamemodes\BNL.PWN(76366) : error 017: undefined symbol "cmd"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.
pawn Код:
if(strcmp(cmd, "/cassino", true) == 0)
Ja tentei algumas coisas mais nao tou conseguindo arrumar isto
pawn Код:
if(strcmp(cmd, "/cassino", true) == 0)
{
if(PlayerToPoint(10.0, playerid,-2765,382,6))
SetPlayerInterior(playerid, 1);
SetPlayerPos(playerid,2233.7998046875,1713.7144775391,1011.7869262695);
PlayerInfo[playerid][pInt] = 1;
return 0;
}
E se Puderem ajudar neste Nao tou conseguindo saber oque e Acredito que seja Includes
pawn Код:
C:\Documents and Settings\Administrador\Desktop\BNC\Gamemode NV\gamemodes\BNC.pwn(16633) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Administrador\Desktop\BNC\Gamemode NV\gamemodes\BNC.pwn(16633) : error 033: array must be indexed (variable "cmd")
C:\Documents and Settings\Administrador\Desktop\BNC\Gamemode NV\gamemodes\BNC.pwn(16700) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Administrador\Desktop\BNC\Gamemode NV\gamemodes\BNC.pwn(16700) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\Administrador\Desktop\BNC\Gamemode NV\gamemodes\BNC.pwn(16707) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Administrador\Desktop\BNC\Gamemode NV\gamemodes\BNC.pwn(16707) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\Administrador\Desktop\BNC\Gamemode NV\gamemodes\BNC.pwn(17010) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Administrador\Desktop\BNC\Gamemode NV\gamemodes\BNC.pwn(17010) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\Administrador\Desktop\BNC\Gamemode NV\gamemodes\BNC.pwn(17020) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Administrador\Desktop\BNC\Gamemode NV\gamemodes\BNC.pwn(17020) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\Administrador\Desktop\BNC\Gamemode NV\gamemodes\BNC.pwn(17022) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Administrador\Desktop\BNC\Gamemode NV\gamemodes\BNC.pwn(17022) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\Administrador\Desktop\BNC\Gamemode NV\gamemodes\BNC.pwn(18370) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Administrador\Desktop\BNC\Gamemode NV\gamemodes\BNC.pwn(18370) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\Administrador\Desktop\BNC\Gamemode NV\gamemodes\BNC.pwn(18378) : error 017: undefined symbol "strtoK
C:\Documents and Settings\Administrador\Desktop\BNC\Gamemode NV\gamemodes\BNC.pwn(18378) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\Administrador\Desktop\BNC\Gamemode NV\gamemodes\BNC.pwn(18468) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Administrador\Desktop\BNC\Gamemode NV\gamemodes\BNC.pwn(18468) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\Administrador\Desktop\BNC\Gamemode NV\gamemodes\BNC.pwn(18510) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Administrador\Desktop\BNC\Gamemode NV\gamemodes\BNC.pwn(18510) : error 033: array must be indexed (variable "x_job")
C:\Documents and Settings\Administrador\Desktop\BNC\Gamemode NV\gamemodes\BNC.pwn(18518) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Administrador\Desktop\BNC\Gamemode NV\gamemodes\BNC.pwn(18518) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\Administrador\Desktop\BNC\Gamemode NV\gamemodes\BNC.pwn(18613) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Administrador\Desktop\BNC\Gamemode NV\gamemodes\BNC.pwn(18613) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\Administrador\Desktop\BNC\Gamemode NV\gamemodes\BNC.pwn(18922) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Administrador\Desktop\BNC\Gamemode NV\gamemodes\BNC.pwn(18922) : error 033: array must be indexed (variable "tmp")
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
26 Errors.
pawn Код:
if (strcmp(cmd, "/ver", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if (PlayerInfo[playerid][pAdmin] >= 1)
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD1, "USE: /ver [ id ]");
return 1;
}
if(admtrampando[playerid] < 1)
{
SendClientMessage(playerid, COLOR_GRAD1, "Vocк nгo estб trabalhando! (/profadmin)");
return 1;
}
//giveplayerid = strval(tmp);
giveplayerid = ReturnUser(tmp);
if(IsPlayerConnected(giveplayerid))
{
if(giveplayerid != INVALID_PLAYER_ID)
{
ShowStats(playerid,giveplayerid);
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " No Such Player");
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " Voce nгo e admin !!");
}
}
return 1;
}