[Ajuda] ERROS
#1

como eu arrumo ?

pawn Код:
C:\Users\Marcelo\Documents\Servers\samp03x_svr_R1-2_win32\gamemodes\GM.pwn(587) : error 017: undefined symbol "tmp"
C:\Users\Marcelo\Documents\Servers\samp03x_svr_R1-2_win32\gamemodes\GM.pwn(587) : error 017: undefined symbol "cmdtext"
C:\Users\Marcelo\Documents\Servers\samp03x_svr_R1-2_win32\gamemodes\GM.pwn(588) : error 017: undefined symbol "tmp"
C:\Users\Marcelo\Documents\Servers\samp03x_svr_R1-2_win32\gamemodes\GM.pwn(589) : error 017: undefined symbol "giveplayerid"
C:\Users\Marcelo\Documents\Servers\samp03x_svr_R1-2_win32\gamemodes\GM.pwn(589) : error 017: undefined symbol "tmp"
C:\Users\Marcelo\Documents\Servers\samp03x_svr_R1-2_win32\gamemodes\GM.pwn(590) : error 017: undefined symbol "giveplayerid"
C:\Users\Marcelo\Documents\Servers\samp03x_svr_R1-2_win32\gamemodes\GM.pwn(591) : error 017: undefined symbol "giveplayerid"
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


7 Errors.
Linhas

pawn Код:
tmp = strtok(cmdtext, idx);
    if(!strlen(tmp)) return SendClientMessage(playerid, 0x919191FF, "USAGE: /ban [id]");
    giveplayerid = strval(tmp);
    if(!IsPlayerConnected(giveplayerid)) return SendClientMessage(playerid, 0x919191FF, "That player isn't connected!");
    Ban(giveplayerid);
Reply
#2

pawn Код:
new tmp[256];
tmp = strtok(cmdtext, idx);
    if(!strlen(tmp)) return SendClientMessage(playerid, 0x919191FF, "USAGE: /ban [id]");
    SendClientMessage = strval(tmp);
    if(!IsPlayerConnected(giveplayerid)) return SendClientMessage(playerid, 0x919191FF, "That player isn't connected!");
    Ban(giveplayerid);
Reply
#3

pawn Код:
C:\Users\Marcelo\Documents\Servers\samp03x_svr_R1-2_win32\gamemodes\GM.pwn(588) : error 017: undefined symbol "cmdtext"
C:\Users\Marcelo\Documents\Servers\samp03x_svr_R1-2_win32\gamemodes\GM.pwn(590) : error 076: syntax error in the expression, or invalid function call
C:\Users\Marcelo\Documents\Servers\samp03x_svr_R1-2_win32\gamemodes\GM.pwn(591) : error 017: undefined symbol "giveplayerid"
C:\Users\Marcelo\Documents\Servers\samp03x_svr_R1-2_win32\gamemodes\GM.pwn(592) : error 017: undefined symbol "giveplayerid"
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.
pawn Код:
tmp = strtok(cmdtext, idx);
pawn Код:
SendClientMessage = strval(tmp);
    if(!IsPlayerConnected(giveplayerid)) return SendClientMessage(playerid, 0x919191FF, "That player isn't connected!");
    Ban(giveplayerid);
Reply
#4

Cara um conselho pra vocк

tudo que tiver
pawn Код:
giveplayerid
substitui por isso
pawn Код:
SendClientMessage
pawn Код:
SendClientMessage = strval(tmp);
    if(!IsPlayerConnected(SendClientMessage)) return SendClientMessage(playerid, 0x919191FF, "That player isn't connected!");
    Ban(giveplayerid);
Reply
#5

pawn Код:
new giveplayerid;
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)