Errors rank system - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Errors rank system (
/showthread.php?tid=209864)
Errors rank system -
Nighel - 11.01.2011
C:\Users\nighel\Desktop\Windows\filterscripts\Rank system.pwn(71) : error 012: invalid function call, not a valid address
C:\Users\nighel\Desktop\Windows\filterscripts\Rank system.pwn(71) : error 001: expected token: ";", but found ")"
C:\Users\nighel\Desktop\Windows\filterscripts\Rank system.pwn(71) : error 029: invalid expression, assumed zero
C:\Users\nighel\Desktop\Windows\filterscripts\Rank system.pwn(71) : fatal error 107: too many error messages on one line
im getting those errors from this line:
dUserSetINT(PlayerName2(playerid)).("Rank",rank[playerid]);
help will be appriciated
Re: Errors rank system -
blackwave - 11.01.2011
Maybe you dont have dudb, or dini. Anyway you should try:
pawn Код:
dini_IntSet(PlayerName2(playerid),"Rank",rank[playerid]);
Re: Errors rank system -
HyperZ - 11.01.2011
That code is looks fine
pawn Код:
dUserSetINT(PlayerName2(playerid)).("Rank",rank[playerid]);
That error is on another line, i guess.
Show me line '72'
Re: Errors rank system -
Nighel - 11.01.2011
Quote:
Originally Posted by Clive
That code is looks fine
pawn Код:
dUserSetINT(PlayerName2(playerid)).("Rank",rank[playerid]);
That error is on another line, i guess.
Show me line '72'
|
that is an bracket }
this is the code:
Код:
public OnPlayerDisconnect(playerid, reason)
{
if (PlayerInfo[playerid][LoggedIn] == 1)
{
dUserSetINT(PlayerName2(playerid)).("Rank",rank[playerid]);
}
return 1;
}
Re: Errors rank system -
Marricio - 11.01.2011
dUserSetINT(PlayerName2(playerid),"Rank",rank[playerid]);
Should work.
Re: Errors rank system -
Nighel - 11.01.2011
Quote:
Originally Posted by Marricio
dUserSetINT(PlayerName2(playerid),"Rank",rank[playerid]);
Should work.
|
Tryed this and now im getting still 4 errors
Код:
C:\Users\nighel\Desktop\Windows\filterscripts\Ranksystem.pwn(93) : error 017: undefined symbol "dUserSetINT"
C:\Users\nighel\Desktop\Windows\filterscripts\Ranksystem.pwn(93) : error 001: expected token: ";", but found ")"
C:\Users\nighel\Desktop\Windows\filterscripts\Ranksystem.pwn(93) : error 029: invalid expression, assumed zero
C:\Users\nighel\Desktop\Windows\filterscripts\Ranksystem.pwn(93) : fatal error 107: too many error messages on one line
Re: Errors rank system -
Marricio - 11.01.2011
i think i missed something
dUserSetINT(PlayerName2(playerid,"Rank",rank[playerid]);
Re: Errors rank system -
Nighel - 11.01.2011
Quote:
Originally Posted by Marricio
i think i missed something
dUserSetINT(PlayerName2(playerid,"Rank",rank[playerid]);
|
Still 4 errors :S
Код:
C:\Users\nighel\Desktop\Windows\filterscripts\Ranksystem.pwn(93) : error 017: undefined symbol "dUserSetINT"
C:\Users\nighel\Desktop\Windows\filterscripts\Ranksystem.pwn(93) : error 001: expected token: ";", but found ")"
C:\Users\nighel\Desktop\Windows\filterscripts\Ranksystem.pwn(93) : error 029: invalid expression, assumed zero
C:\Users\nighel\Desktop\Windows\filterscripts\Ranksystem.pwn(93) : fatal error 107: too many error messages on one line
Re: Errors rank system -
Marricio - 11.01.2011
ok sorry i cant do nothing anyways i has to do homework, gl.
Re: Errors rank system -
Nighel - 11.01.2011
Quote:
Originally Posted by Marricio
ok sorry i cant do nothing anyways i has to do homework, gl.
|
Np thanks anyway