06.12.2009, 11:24
Hey,
Well im trying to make a login/register dialog appear in OnPlayerRequestSpawn.
This is what I have:
Now I get this error :
Anyone know wtf this means?
Well im trying to make a login/register dialog appear in OnPlayerRequestSpawn.
This is what I have:
pawn Код:
public OnPlayerRequestSpawn(playerid)
{
foreach (Player, i)
{
Itter_Random(Player, i)
TogglePlayerSpectating(playerid, 1);
PlayerSpectatePlayer(playerid, i);
PlayerInfo[playerid][pSQLId] = INVALID_SQL_ID;
FindPlayerSQL(playerid);
if(PlayerInfo[playerid][pSQLId] > INVALID_SQL_ID)
{
gPlayerAccount[playerid] = 1;
ShowLoginDialog(playerid);
}
else
{
gPlayerAccount[playerid] = 0;
ShowRegDialog(playerid);
}
return 1;
}
Код:
C:\Program Files\Rockstar Games\samp03asvr_R2_win32\gamemodes\SGGWls.pwn(856) : error 017: undefined symbol "YSI_gPlayer"