SA-MP Forums Archive
problem with undefined - 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: problem with undefined (/showthread.php?tid=635363)



problem with undefined - IggyKlipz - 05.06.2017

stock getPlayerLandID(playerid)
{
for(int<<<< i get the error here i = 0; i < MAX_LANDS; i++)
if(landInfo[i][lCreated])
if(IsPlayerInRangeOfPoint(playerid, LAND_RANGE, landInfo[i][lIconX], landInfo[i][lIconY], landInfo[i][lIconZ]))
return i;
return INVALID_LAND_ID;
}

says its undefined int


Re: problem with undefined - Toroi - 05.06.2017

replace the word int for the word new


Re: problem with undefined - IggyKlipz - 06.06.2017

when i done that i got a ton of errors


Re: problem with undefined - Toroi - 06.06.2017

Then stop copy-pasting things into your gamemode.


Re: problem with undefined - IggyKlipz - 06.06.2017

whaaa lmao, i never i thought about changing it to new.... never worked,.... so ive tryed to get help here