21.04.2010, 07:30
Ok so i made a housecar dialog . This is the ShowPlayerDialog :
And this is the OnDialogResponse :
And i get 2 errors : 1 : housecar symbol never used and second houseid symbol never used ! But if i do new houseacar; or new houseid; i get a shit loads of errors !! Any help ?
Ok so i fixed everything but now if i compile look at my line and my error :
Error :
Help ... Please
Код:
if(strcmp(cmd, "/housecar", true) == 0 || strcmp(cmd, "/hc", true) == 0) { if(PlayerInfo[playerid][pHouseKey] != INVALID_HOUSE_ID && PlayerInfo[playerid][pHouseOwner] == 1) { ShowPlayerDialog(playerid, 25, DIALOG_STYLE_LIST, "What for housecar you want", "18+ Cars\n20+ Cars\n22+ Cars\n24+ Cars\n26+ Cars\nCop Cars\nArmy Cars", "Accept", "Cancel"); } return 1; }
Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) if(response == 1) { if(listitem == 0) { if(PlayerInfo[playerid][pLevel] >= 18 && (strcmp(housecar, "bike", true, strlen(housecar)) == 0)) { SendClientMessage(playerid, COLOR_YELLOW, "You have successfully bought a Bike."); HouseInfo[houseid][hVec] = 510; GivePlayerMoney(playerid, -20000); } } }
Ok so i fixed everything but now if i compile look at my line and my error :
Код:
if(PlayerInfo[playerid][pLevel] >= 18 && (strcmp(hVec, "bike", true, strlen(housecar)) == 0))
Код:
D:\Gta san andreas\GTA San Andreas\server\gamemodes\slrpg.pwn(1543) : error 035: argument type mismatch (argument 1)