Y INI lvalue error
#1

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...
Reply
#2

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

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

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

Thanks. +REP for your help.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)