Undefined symbol "SetIntVar" - 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: Undefined symbol "SetIntVar" (
/showthread.php?tid=645000)
Undefined symbol "SetIntVar" -
Charisma - 18.11.2017
error 017: undefined symbol "SetIntVar"
How to fix that?
Re: Undefined symbol "SetIntVar" -
Kane - 18.11.2017
"SetIntVar" isn't a function. It's "SetPVarInt".
https://sampwiki.blast.hk/wiki/SetPVarInt
Re: Undefined symbol "SetIntVar" -
Charisma - 18.11.2017
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
Re: Undefined symbol "SetIntVar" -
Kane - 18.11.2017
https://sampwiki.blast.hk/wiki/GetPVarString
(playerid, varname[], string_return[], len)
Example: Save the player's name in a pVar
PHP код:
public OnPlayerDeath(playerid, killerid, reason)
{
new playerName[MAX_PLAYER_NAME+1];
GetPVarString(playerid, "PlayerName", playerName, sizeof(playerName));
printf("%s died.", playerName);
}