error GetPVarInt ? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: error GetPVarInt ? (
/showthread.php?tid=507877)
error GetPVarInt ? -
Useryy - 19.04.2014
PHP код:
if(GetPVarInt(playerid, "PlayerAutoLogin") == 1);
{
}
else
{
//PLAYER DIALOG LOGIN
ShowPlayerDialog(playerid, DIALOG_LOGINACCOUNT, DIALOG_STYLE_PASSWORD, S_COLOR_EMB2 S_SHORTNAME S_COLOR_EMB1" - Login", S_COLOR_EMB1"This name is registered.\nEnter the password for this account:", "Login", "");
}
when i try to use that it says
"C:\Users\ADMIN\Desktop\SA-MP SERVER\gamemodes\GameMode.pwn(310) : error 036: empty statement
C:\Users\ADMIN\Desktop\SA-MP SERVER\gamemodes\GameMode.pwn(314) : error 029: invalid expression, assumed zero
Re: error GetPVarInt ? - Astralis - 19.04.2014
pawn Код:
if(GetPVarInt(playerid, "PlayerAutoLogin") == 1)
{
//your code here
}
else
{
//PLAYER DIALOG LOGIN
ShowPlayerDialog(playerid, DIALOG_LOGINACCOUNT, DIALOG_STYLE_PASSWORD, S_COLOR_EMB2 S_SHORTNAME S_COLOR_EMB1" - Login", S_COLOR_EMB1"This name is registered.\nEnter the password for this account:", "Login", "");
}