Undefined symbol playerid..
#2

Quote:
Originally Posted by div
View Post
Code:
if(pInfo[playerid][pLoggedIn] == 1)
	{   
		new score = GetPlayerScore(playerid);
		new money = GetPlayerMoney(playerid);
	    new query[256];
	    format(query, 256, "UPDATE `playerdata` SET `score` = '%d', `kills` = '%d', `deaths` = '%d', `admin` = '%d', `VIP` = '%d', `money` = '%d', `pjobselected` = '1', `pjob` ='%d' WHERE `id` = '%d'", score, pInfo[playerid][pKills], pInfo[playerid][pDeaths], pInfo[playerid][pAdmin], pInfo[playerid][pVIP], money, pInfo[playerid][pJob], pInfo[playerid][pDBID]);
		mysql_tquery(dbHandle, query); // thats it
	}
	return 1;
ERRORS
Code:
C:\Users\div\Desktop\samp\gamemodes\CNR.pwn(684) : error 017: undefined symbol "playerid"
C:\Users\div\Desktop\samp\gamemodes\CNR.pwn(686) : error 017: undefined symbol "playerid"
C:\Users\div\Desktop\samp\gamemodes\CNR.pwn(687) : error 017: undefined symbol "playerid"
C:\Users\div\Desktop\samp\gamemodes\CNR.pwn(689) : error 017: undefined symbol "playerid"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase

I've tried adding this code =
Code:
new playerid = GetPlayerName(playerid);
then it gives me warning

Code:
C:\Users\div\Desktop\samp\gamemodes\CNR.pwn(683) : warning 202: number of arguments does not match definition
C:\Users\div\Desktop\samp\gamemodes\CNR.pwn(683) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase
You don't need that code. Take that out. That's why you having error cause of that 1 code.
Reply


Messages In This Thread
Undefined symbol playerid.. - by div - 19.06.2018, 10:13
Re: Undefined symbol playerid.. - by DerickClark - 19.06.2018, 10:17
Re: Undefined symbol playerid.. - by GTLS - 19.06.2018, 11:25
Re: Undefined symbol playerid.. - by Shadow0707 - 19.06.2018, 12:56
Re: Undefined symbol playerid.. - by kovac - 19.06.2018, 13:02
Re: Undefined symbol playerid.. - by SubGames - 19.06.2018, 13:45
Re: Undefined symbol playerid.. - by Lokii - 19.06.2018, 13:55
Re: Undefined symbol playerid.. - by kovac - 19.06.2018, 14:45
Re: Undefined symbol playerid.. - by GTLS - 19.06.2018, 14:57
Re: Undefined symbol playerid.. - by TadePoleMG - 19.06.2018, 15:05

Forum Jump:


Users browsing this thread: 1 Guest(s)