I need help with some samp compiling errors -
xLucy - 21.07.2017
Код:
stock PlayerPriority(playerid)
{
new string[128];
if(GetPVarInt(playerid, "Admin") >= 1) format(string, sizeof(string), "%s", GetPVarInt(playerid, "Admin");
else if(GetPVarInt(playerid, "Helper") == 1) format(string, sizeof(string), "%s", GetPVarInt(playerid, "Helper");
else if(GetPVarInt(playerid, "Helper") == 2) format(string, sizeof(string), "%s", GetPVarInt(playerid, "Admin");
else if(GetPVarInt(playerid, "ConnectTime") <= 8 && GetPVarInt(playerid, "Admin") == 0 && GetPVarInt(playerid, "Helper") == 0) format(string, sizeof(string), "Newbie");
else if(GetPVarInt(playerid, "ConnectTime") >= 8 && GetPVarInt(playerid, "Admin") == 0 && GetPVarInt(playerid, "Helper") == 0) format(string, sizeof(string), "Player");
else if(GetPVarInt(playerid, "ConnectTime") >= 500 && GetPVarInt(playerid, "Admin") == 0 && GetPVarInt(playerid, "Helper") == 0) format(string, sizeof(string), "Veteran");
else if(GetPVarInt(playerid, "ConnectTime") <= 60 && GetPVarInt(playerid, "Admin") == 0 && GetPVarInt(playerid, "Helper") == 0) format(string, sizeof(string), "Senior Player");
return string;
}
I've tried my best to fix it to the best of my ability but I keep getting this error.
Код:
../gamemodes/Build.pwn(24623) : error 001: expected token: ",", but found ";"
../gamemodes/Build.pwn(24624) : error 001: expected token: ",", but found ";"
../gamemodes/Build.pwn(24625) : error 001: expected token: ",", but found ";"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
3 Errors.
================ READY ================
Re: I need help with some samp compiling errors -
jlalt - 21.07.2017
You're missing ) after the getpvarint function.
PHP код:
format(string, sizeof(string), "%s", GetPVarInt(playerid, "Admin");
->
PHP код:
format(string, sizeof(string), "%s", GetPVarInt(playerid, "Admin"));
PHP код:
if(GetPVarInt(playerid, "Admin") >= 1) format(string, sizeof(string), "%s", GetPVarInt(playerid, "Admin"));
else if(GetPVarInt(playerid, "Helper") == 1) format(string, sizeof(string), "%s", GetPVarInt(playerid, "Helper"));
else if(GetPVarInt(playerid, "Helper") == 2) format(string, sizeof(string), "%s", GetPVarInt(playerid, "Admin"));
Re: I need help with some samp compiling errors -
xLucy - 21.07.2017
Damn, just realised. Thanks! +rep
Will try it
Re: I need help with some samp compiling errors -
xLucy - 21.07.2017
Worked! Thanks my man. Deserved that +rep.
Admin may L&A this.