Hallo ich habe ein Problem.
Ich bekomme immer diese Errors.
Code
C:\Users\Amir\Desktop\ScriptTest.pwn(13921) : error 029: invalid expression, assumed zero
C:\Users\Amir\Desktop\ScriptTest.pwn(13921) : warning 215: expression has no effect
C:\Users\Amir\Desktop\ScriptTest.pwn(13921) : error 001: expected token: ";", but found "]"
C:\Users\Amir\Desktop\ScriptTest.pwn(13921) : error 029: invalid expression, assumed zero
C:\Users\Amir\Desktop\ScriptTest.pwn(13921) : fatal error 107: too many error messages on one line
if(strcmp("/buylevel",cmdtext,true) == 0)
{
if[playerid][Respekt] = 8;
{
SendClientMessage(playerid,COLOR_RED,"Du brauchst 8 Respektpunkte & 5000$!");
}
else
{
new lvl = GetPlayerScore(playerid);
Player[playerid][Level] = 3;
GivePlayerMoney(playerid,-5000);
SetPlayerScore(playerid,lvl)lvl += 1;
}
return 1;
}
Hoffentlich kann mir jemand helfen