17.08.2011, 00:00
Quote:
Thanks!
Im sorry but i got an error, if I annoyed or something @ Kush, u can just ignore this I can wait till other people reply (: C:\Users\User\Desktop\Scripting\gamemodes\AceDrive rs.pwn(77) : error 017: undefined symbol "response" This what happen I typed ur code under ShowPlayerDialog(playerid,DIALOG_STYLE_MSGBOX,2,"A ce Drivers","Do you like TrawlTrawl?","Yes","no"); |
ON-TOPIC: Your using the code provided incorrectly.
PHP код:
public OnPlayerConnect(playerid)
{
ShowPlayerDialog(playerid,2,DIALOG_STYLE_MSGBOX,"A ce Drivers","Do you like TrawlTrawl?","Yes","No")
return 1;
}
PHP код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == 2)
{
if(response)
{
SetSpawnInfo(playerid, 0, 299,0.0,0.0,0.0,0,0,0,0,0,0,0);
SpawnPlayer(playerid);
}
else
{
Kick(playerid);
}
}
return 1;
}