Guten Tag, ich habe folgendes Problem:
pwn.pwn(757) : warning 217: loose indentation
pwn.pwn(750) : warning 204: symbol is assigned a value that is never used: "string"
pwn.pwn(810) : error 017: undefined symbol "cmd"
pwn.pwn(812) : warning 219: local variable "Vstring" shadows a variable at a preceding level
pwn.pwn(813) : error 017: undefined symbol "strtok"
pwn.pwn(813) : error 033: array must be indexed (variable "tmp")
pwn.pwn(823) : error 017: undefined symbol "cmd"
pwn.pwn(826) : error 017: undefined symbol "strtok"
pwn.pwn(826) : error 033: array must be indexed (variable "tmp")
pwn.pwn(832) : error 017: undefined symbol "strtok"
pwn.pwn(832) : error 033: array must be indexed (variable "tmp")
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
Alles anzeigen
Leider finde ich keine Lösung, und habe auch schon im englischen Forum danach gesucht.
Der Code:
if(strcmp(cmd, "/baninfo", true) == 0)
{
new tmp[24],Vstring[32];
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
return SendClientMessage(playerid, -1, "USO: /baninfo[Nickname/IP]");
format(Vstring,32,"/bans/%s.ini",tmp);
VBanLoadInfo(playerid,Vstring);
return 1;
}
if(strcmp(cmd, "/ban", true) == 0)
{
new tmp[24];
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
return SendClientMessage(playerid, -1, "USE: Enter the nickname");
new giveid = VBReturnUser(tmp);
tmp = strtok(cmdtext,idx);
if(!strlen(tmp))
return SendClientMessage(playerid, -1, "USE: Enter the reason");
VBanID(playerid,giveid,tmp);
return 1;
}
Ich hoffe ihr könnt mir helfen.