Quantcast
Channel: SA-MP Forums
Viewing all articles
Browse latest Browse all 18226

Undefined Symbols even though they have stocks

$
0
0
I'm (still) trying to get this old gamemode to compile and I can't figure out why i'm getting "undefined symbol" for ALMOST every stock (but not all). Can anybody help?

Code:

#include <a_samp>
#include <a_mysql>
#include <a_actor>
#include <sscanf2>
#include <streamer>
#include <YSI\y_ini>
#include <foreach>

Example of errors:
Code:

:
error 017: undefined symbol "ShowTextDrawMenu"
: error 017: undefined symbol "ShowTextDrawMenuItems"
 : error 017: undefined symbol "HideTextDrawMenu"
: error 017: undefined symbol "ShowTextDrawMenu"
: error 017: undefined symbol "ShowTextDrawMenuItems"
: error 017: undefined symbol "SavePlayerStats"

Example of one of the many stocks:
Code:

stock SavePlayerStats(playerid)
{
    if(!IsPlayerNPC(playerid) && PlayerInfo[playerid][pRegistered] == 1 && PlayerInfo[playerid][pLogged] == 1 && PlayerInfo[playerid][pSpawn] == 1) //Only saves if the player was logged in and spawned
    {
                        new query[300],string[256],Float:Health,Float:Armour;

                        if (PlayerInfo[playerid][pReturnWeapons] == 0)
                        {
                        for (new s=0; s<12; s++)
                        {
                        GetPlayerWeaponData(playerid, s, PlayerInfo[playerid][pWeapon][s],PlayerInfo[playerid][pAmmo][s]);
                        }
        }
}


Viewing all articles
Browse latest Browse all 18226

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>