04.05.2011, 16:08
Can anybody see where i forgot a }?
In this code:
(theres also a bit code from dialogresponse under this, but that works perfect)
Thankz
In this code:
Quote:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { if(dialogid == 1957 && response == 1) { if(listitem == 0) { if(freegift[playerid] == 0) { GivePlayerWeapon(playerid, 31, 5000); SendClientMessage(playerid, COLOR_YELLOW, "Serverguid: {00FF15}You have choosen a M4! In 4 hours you can choose another gift!"); SetPlayerPos(playerid, 1940.4705,-2267.8896,13.5745); SetTimerEx("freegifttimer", 14400000, 0,"e",playerid); something[playerid] = 1; return 1; } else if(freegift[playerid] == 1) { SendClientMessage(playerid, COLOR_RED, "Serverguid: {00FF15}Serverguid: {00FF15}You have choosen $100,00 cash! In 4 hours you can choose another gift!"); SetPlayerPos(playerid, 1940.4705,-2267.8896,13.5745); } if(listitem == 1) { if(freegift[playerid] == 0) { SendClientMessage(playerid, COLOR_YELLOW, "Serverguid: {00FF15}You have choosen $100,00 cash! In 4 hours you can choose another gift!"); SetPlayerPos(playerid, 1940.4705,-2267.8896,13.5745); SetTimerEx("freegifttimer", 14400000, 0,"e",playerid); GivePlayerMoney(playerid, 100000); something[playerid] = 1; return 1; } else if(freegift[playerid] == 1) { SendClientMessage(playerid, COLOR_RED, "Serverguid: {00FF15}Serverguid: {00FF15}You have choosen $100,00 cash! In 4 hours you can choose another gift!"); SetPlayerPos(playerid, 1940.4705,-2267.8896,13.5745); } if(listitem == 2) { if(freegift[playerid] == 0) { SendClientMessage(playerid, COLOR_YELLOW, "Serverguid: {00FF15}You have choosen 250 score! In 4 hours you can choose another gift!"); SetTimerEx("freegifttimer", 14400000, 0,"e",playerid); SetPlayerScore(playerid, GetPlayerScore(playerid) + 250); SetPlayerPos(playerid, 1940.4705,-2267.8896,13.5745); something[playerid] = 1; return 1; } else if(freegift[playerid] == 1) { SendClientMessage(playerid, COLOR_RED, "Serverguid: {00FF15}Serverguid: {00FF15}You have choosen $100,00 cash! In 4 hours you can choose another gift!"); SetPlayerPos(playerid, 1940.4705,-2267.8896,13.5745); } |
Thankz