Undefined symbol "SetIntVar"
#1

error 017: undefined symbol "SetIntVar"

How to fix that?
Reply
#2

"SetIntVar" isn't a function. It's "SetPVarInt".

https://sampwiki.blast.hk/wiki/SetPVarInt
Reply
#3

Quote:

format(string, sizeof(string), "You have bought a {00FF00}%s{FFFFFF}, for ${00FF00}%d{FFFFFF}.", GetPVarString(playerid, "ToyNameBuying"), GetPVarInt(playerid, "ToyPriceBuying"));
SendClientMessage(playerid, -1, string);

This code but i try complie and pawno say 'warning 202: number of arguments does not match definition' how to fix that @Arthur Kane
Reply
#4

https://sampwiki.blast.hk/wiki/GetPVarString
(playerid, varname[], string_return[], len)

Example: Save the player's name in a pVar
PHP код:
public OnPlayerDeath(playeridkilleridreason)
{
    new 
playerName[MAX_PLAYER_NAME+1];
    
GetPVarString(playerid"PlayerName"playerNamesizeof(playerName));
 
    
printf("%s died."playerName);

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)