Hallo,
wollte mehrere PVars in einer if Abfrage
Code:
ocmd:obdachlosenheim(playerid,params[])
{
if(GetPVarInt(playerid,"Tutorial") == 0)
{
if(GetPVarInt(playerid,"FreddyKette" && "FreddyGeld" && "Perso") == 1)//Betroffen
{
SendClientMessage(playerid,hellblau,"Sauber du hast die Kette von Freddy gefunden.\nHier wirst du erstmal leben");
}
else if(GetPVarInt(playerid,"FreddyKette" && "FreddyGeld" && "Perso") == 0)//Betroffen
{
SendClientMessage(playerid,rot,"Du hast nicht die Kette gefunden!");
}
}
else if(GetPVarInt(playerid,"Tutorial") == 1)
{
SendClientMessage(playerid,rot,"Du bist nicht im Tutorial.");
}
return 1;
}
Errors:
J:\Chrome Downloads\German City Reallife\gamemodes\gcr.pwn(156) : error 001: expected token: "-string end-", but found "-identifier-"
J:\Chrome Downloads\German City Reallife\gamemodes\gcr.pwn(160) : error 001: expected token: "-string end-", but found "-identifier-"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
2 Errors.
MfG,
HunterBoY998