SA-MP Forums Archive
ForceClassSelection - 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: ForceClassSelection (/showthread.php?tid=464313)



ForceClassSelection - Strapz - 16.09.2013

aight guys so my server was suposed to save the skin but since it doesnt and applies another skin when you relog I decided to forceclassselection after login so this is what I did

Код:
if(IsLogged[playerid] = 1); return ForceClassSelection(playerid)
return 1;
but im getting 2 errors the function is defined as IsLogged[playerid] = 1; but I know this is a error caused by the ")ґs" or something its on the structure pls tell me how to put it right.


Код:
D:\Server\Server\gamemodes\CbK.pwn(681) : error 036: empty statement
D:\Server\Server\gamemodes\CbK.pwn(682) : error 001: expected token: ";", but found "return"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.



Re: ForceClassSelection - Konstantinos - 16.09.2013

The player will go to the class selection if they re-spawn.
pawn Код:
if(IsLogged[playerid] = 1)
{
    ForceClassSelection(playerid);
    TogglePlayerSpectating(playerid, true);
    TogglePlayerSpectating(playerid, false);
    return 1;
}



Re: ForceClassSelection - Strapz - 16.09.2013

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
The player will go to the class selection if they re-spawn.
pawn Код:
if(IsLogged[playerid] = 1)
{
    ForceClassSelection(playerid);
    TogglePlayerSpectating(playerid, true);
    TogglePlayerSpectating(playerid, false);
    return 1;
}
Thanks Thats why I added it under onplayerconnect call back xD you dont reconnect everytime you die xD

Thank you very much and reped