26.07.2015, 20:30
Код:
if(dialogid == 130) { if(!response) { return 1; } switch(listitem) { case 0: { if(PlayerInfo[playerid][pGPPoints] >= 150) { PlayerInfo[playerid][pDonateRank] = 1; PlayerInfo[playerid][pGPPoints] -= 150; format(string, sizeof(string), "UPDATE players SET DonateRank='%d' WHERE id=%d", PlayerInfo[playerid][pDonateRank], PlayerInfo[playerid][pSQLID]); mysql_query(string); format(string, sizeof(string), "UPDATE players SET GamePoints='%d' WHERE id=%d", PlayerInfo[playerid][pGPPoints], PlayerInfo[playerid][pSQLID]); mysql_query(string); SendClientMessage(playerid, -1, "Felicitari! Ai achizitionat 'Cont VIP' in schimbul a 150 {FF8C00}GamePoints{FFFFFF}!"); SendClientMessage(playerid, -1, "Tasteaza /desprevip pentru informatii!"); return 1; } else { SendClientMessage(playerid, -1, "Nu detii 150 {FF8C00}GamePoints{FFFFFF}!"); return 1; } } case 1: { if(PlayerInfo[playerid][pGPPoints] >= 20) { if(PlayerInfo[playerid][pWarns] > 0) { PlayerInfo[playerid][pWarns] = 0; PlayerInfo[playerid][pGPPoints] -= 20; format(string, sizeof(string), "UPDATE players SET GamePoints='%d' WHERE id=%d", PlayerInfo[playerid][pGPPoints], PlayerInfo[playerid][pSQLID]); mysql_query(string); format(string, sizeof(string), "UPDATE players SET Warnings='%d' WHERE id=%d", PlayerInfo[playerid][pWarns], PlayerInfo[playerid][pSQLID]); mysql_query(string); SendClientMessage(playerid, -1, "Felicitari! Ai achizitionat 'Clear Warns' in schimbul a 20 {FF8C00}GamePoints{FFFFFF}!"); return 1; } else { SendClientMessage(playerid, -1 ,"Nu ai warn-uri!"); return 1; } } else { SendClientMessage(playerid, -1, "Nu detii 20 {FF8C00}GamePoints{FFFFFF}!"); return 1; } } case 2: { if(PlayerInfo[playerid][pGPPoints] >= 40) { if(PlayerInfo[playerid][pPunish] > 0) { PlayerInfo[playerid][pPunish] = 0; PlayerInfo[playerid][pGPPoints] -= 40; format(string, sizeof(string), "UPDATE players SET GamePoints='%d' WHERE id=%d", PlayerInfo[playerid][pGPPoints], PlayerInfo[playerid][pSQLID]); mysql_query(string); format(string, sizeof(string), "UPDATE players SET Fpunish='%d' WHERE id=%d", PlayerInfo[playerid][pPunish], PlayerInfo[playerid][pSQLID]); mysql_query(string); SendClientMessage(playerid, -1, "Felicitari! Ai achizitionat 'Clear FPunish' in schimbul a 40 {FF8C00}GamePoints{FFFFFF}!"); return 1; } else { SendClientMessage(playerid, -1 ,"Nu ai FPunish!"); return 1; } } else { SendClientMessage(playerid, -1, "Nu detii 40 {FF8C00}GamePoints{FFFFFF}!"); return 1; } } } }
Код:
C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(12123) : error 035: argument type mismatch (argument 1) C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(12125) : error 035: argument type mismatch (argument 1) C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(12145) : error 035: argument type mismatch (argument 1) C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(12147) : error 035: argument type mismatch (argument 1) C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(12172) : error 035: argument type mismatch (argument 1) C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(12174) : error 035: argument type mismatch (argument 1) C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(13254) : error 035: argument type mismatch (argument 1)