19.06.2018, 10:17
Quote:
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; 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); 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 |