C:\Users\Mipu\Desktop\gta 0.3\gamemodes\lvdm.pwn(236) : warning 219: local variable "tmp" shadows a variable at a preceding level
C:\Users\Mipu\Desktop\gta 0.3\gamemodes\lvdm.pwn(241) : error 017: undefined symbol "login"
C:\Users\Mipu\Desktop\gta 0.3\gamemodes\lvdm.pwn(241) : warning 215: expression has no effect
C:\Users\Mipu\Desktop\gta 0.3\gamemodes\lvdm.pwn(241) : error 001: expected token: ";", but found "]"
C:\Users\Mipu\Desktop\gta 0.3\gamemodes\lvdm.pwn(241) : error 029: invalid expression, assumed zero
C:\Users\Mipu\Desktop\gta 0.3\gamemodes\lvdm.pwn(241) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.
public OnPlayerCommandText(playerid, cmdtext[])
{
new string[256];
new playermoney;
new sendername[MAX_PLAYER_NAME];
new giveplayer[MAX_PLAYER_NAME];
new cmd[256];
new giveplayerid, moneys, idx;
cmd = strtok(cmdtext, idx);
new tmp[256]; //<----236
new playername[MAX_PLAYER_NAME];
cmd = strtok(cmdtext, idx);
if (strcmp(cmd, "/login", true) ==0 )
{
login[playerid] = true //<---das ist zeile 241
if(IsPlayerConnected(playerid))
{
new tmppass[64];
if(gPlayerLogged[playerid] == 1)
{
SendClientMessage(playerid, COLOR_GREY, " Du bist bereits eingeloggt.");
return 1;
}
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GREY, " Benutze: /login [password]");
return 1;
}
strmid(tmppass, tmp, 0, strlen(cmdtext), 255);
Encrypt(tmppass);
OnPlayerLogin(playerid,tmppass);
}
return 1;
}
Habe das selbe system in einen anderen script auch drinnen und da funkt es warum hier nicht