07.07.2010, 08:27
Found it already.. But now i got 5 other errors.
28 line:
dUserSetINT(playername(playerid)).("nauda",GetPlay erMoney(playerid));
Quote:
C:\Documents and Settings\SaW\My Documents\serv\movies\gamemodes\reg.pwn(2 : error 012: invalid function call, not a valid address C:\Documents and Settings\SaW\My Documents\serv\movies\gamemodes\reg.pwn(2 : warning 215: expression has no effect C:\Documents and Settings\SaW\My Documents\serv\movies\gamemodes\reg.pwn(2 : error 001: expected token: ";", but found ")" C:\Documents and Settings\SaW\My Documents\serv\movies\gamemodes\reg.pwn(2 : error 029: invalid expression, assumed zero C:\Documents and Settings\SaW\My Documents\serv\movies\gamemodes\reg.pwn(2 : fatal error 107: too many error messages on one line |
Код:
public OnPlayerDisconnect(playerid, reason) { if (IsLogged[playerid] = 1) { new playername[MAX_PLAYER_NAME]; GetPlayerName(playerid, playername, sizeof(playername)); dUserSetINT(playername(playerid)).("nauda",GetPlayerMoney(playerid)); IsLogged[playerid] = 0; } }
dUserSetINT(playername(playerid)).("nauda",GetPlay erMoney(playerid));