[HELP]House Car Dialog ! - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [HELP]House Car Dialog ! (
/showthread.php?tid=143084)
[HELP]House Car Dialog ! -
Kirchhoff - 21.04.2010
Ok so i made a housecar dialog . This is the ShowPlayerDialog :
Код:
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;
}
And this is the OnDialogResponse :
Код:
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);
}
}
}
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 :
Код:
if(PlayerInfo[playerid][pLevel] >= 18 && (strcmp(hVec, "bike", true, strlen(housecar)) == 0))
Error :
Код:
D:\Gta san andreas\GTA San Andreas\server\gamemodes\slrpg.pwn(1543) : error 035: argument type mismatch (argument 1)
Help ... Please