SA-MP Forums Archive
Y INI lvalue error - 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: Y INI lvalue error (/showthread.php?tid=504017)



Y INI lvalue error - Lidor124 - 01.04.2014

So i read before posting and understood that line is wrong because it GetPVarInt instead of SetPVarInt (its load the stored values for a specific player)

Код:
C:\Users\Mor\Desktop\CGRP v1.02 0.3z R1 Y_INI\gamemodes\CGRP.pwn(30683) : warning 202: number of arguments does not match definition
C:\Users\Mor\Desktop\CGRP v1.02 0.3z R1 Y_INI\gamemodes\CGRP.pwn(30683) : error 022: must be lvalue (non-constant)
The problem is if i use SetPVarInt, the errors keep showing so i understood that i need a int_value parameter https://sampwiki.blast.hk/wiki/SetPVarInt

NOTE: I'm using Y_INI

Its under public
forward LoadUser_data(playerid,name[],value[]);
public LoadUser_data(playerid,name[],value[])

Код:
INI_Int("Money", SetPVarInt(playerid, "Cash"));
Please help...


Re: Y INI lvalue error - Lidor124 - 01.04.2014

Please... only this and my Y INI registration and login system complete ... (I really need it ASAP)


Re: Y INI lvalue error - Binx - 01.04.2014

Instead of PVars, use things like: new NeedsHelp[MAX_PLAYERS]; (example)

As for your money problem, you could just use: PlayerInfo[playerid][pCash].


Re: Y INI lvalue error - Lidor124 - 02.04.2014

Thanks. +REP for your help.