STUCK AGAIN!!??!! -
kaos999 - 28.07.2013
Код:
public OnDialogResponse();
if (dialogid == 20320 = && responce)
{
switch(listitem)
{
case 0:
{
ShowPlayerDialog(playerid,20321, DIALOG_STYLE_LIST, "[XL]WEAPON SHOP","m4($5000)\nSPRAYcan($1500)","buy weapon","leave"
}
}
}
if(dialogid == 20320 && responce
{
switch(listitem)
{
case 0:
{
if(GetPlayerMoney(playerid) < 5000 return SendClientMessage(playerid,COLOR_RED,"[XLGW]ERROR:YOU DO NOT ENOUGH MONEY TO BUY THIS WEAPON,GO AND KILL SOME MORE RIVAL GANGS);
GivePlayerWeapon(playerid, 31,1000);
GivePlayerMoney(playerid, -5000);
SendClientMessage(playerid,COLOR_RED,"[XLGW]YOU HAVE BOUGHT A M4 WITH 1000 AMMO USE IT WELL");
}
case 1:
{
if(GetPlayerMoney(playerid) < 1500 return SendClientMessage(playerid,COLOR_RED,"[XLGW]ERROR:YOU DO NOT ENOUGH MONEY TO BUY THIS WEAPON,GO AND KILL SOME MORE RIVAL GANGS);
GivePlayerWeapon(playerid, 41,500);
GivePlayerMoney(playerid, -1500);
SendClientMessage(playerid,COLOR_RED,"[XLGW]YOU HAVE BOUGHT A SPRAY CAN WITH 500 AMMO USE IT WELL");
}
}
}
return 1;
}
with these errors?
Код:
C:\Documents and Settings\Administrator\Desktop\SA SERVER\OFFICAL SERVER\gamemodes\xlgwolds.pwn(2737) : error 010: invalid function or declaration
C:\Documents and Settings\Administrator\Desktop\SA SERVER\OFFICAL SERVER\gamemodes\xlgwolds.pwn(2739) : error 010: invalid function or declaration
C:\Documents and Settings\Administrator\Desktop\SA SERVER\OFFICAL SERVER\gamemodes\xlgwolds.pwn(2741) : error 010: invalid function or declaration
C:\Documents and Settings\Administrator\Desktop\SA SERVER\OFFICAL SERVER\gamemodes\xlgwolds.pwn(2747) : error 010: invalid function or declaration
C:\Documents and Settings\Administrator\Desktop\SA SERVER\OFFICAL SERVER\gamemodes\xlgwolds.pwn(2749) : error 010: invalid function or declaration
C:\Documents and Settings\Administrator\Desktop\SA SERVER\OFFICAL SERVER\gamemodes\xlgwolds.pwn(2751) : error 010: invalid function or declaration
C:\Documents and Settings\Administrator\Desktop\SA SERVER\OFFICAL SERVER\gamemodes\xlgwolds.pwn(2753) : error 010: invalid function or declaration
C:\Documents and Settings\Administrator\Desktop\SA SERVER\OFFICAL SERVER\gamemodes\xlgwolds.pwn(2758) : error 010: invalid function or declaration
C:\Documents and Settings\Administrator\Desktop\SA SERVER\OFFICAL SERVER\gamemodes\xlgwolds.pwn(2760) : error 010: invalid function or declaration
C:\Documents and Settings\Administrator\Desktop\SA SERVER\OFFICAL SERVER\gamemodes\xlgwolds.pwn(2767) : error 010: invalid function or declaration
Re: STUCK AGAIN!!??!! -
JimmyCh - 28.07.2013
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if (dialogid == 20320)
{
switch(listitem)
{
case 0:
{
ShowPlayerDialog(playerid,20321, DIALOG_STYLE_LIST, "[XL]WEAPON SHOP","m4($5000)\nSPRAYcan($1500)","buy weapon","leave");
}
}
}
if(dialogid == 20321)
{
switch(listitem)
{
case 0:
{
if(GetPlayerMoney(playerid) < 5000) return SendClientMessage(playerid,COLOR_RED,"[XLGW]ERROR:YOU DO NOT ENOUGH MONEY TO BUY THIS WEAPON,GO AND KILL SOME MORE RIVAL GANGS");
GivePlayerWeapon(playerid, 31,1000);
GivePlayerMoney(playerid, -5000);
SendClientMessage(playerid,COLOR_RED,"[XLGW]YOU HAVE BOUGHT A M4 WITH 1000 AMMO USE IT WELL");
}
case 1:
{
if(GetPlayerMoney(playerid) < 1500) return SendClientMessage(playerid,COLOR_RED,"[XLGW]ERROR:YOU DO NOT ENOUGH MONEY TO BUY THIS WEAPON,GO AND KILL SOME MORE RIVAL GANGS");
GivePlayerWeapon(playerid, 41,500);
GivePlayerMoney(playerid, -1500);
SendClientMessage(playerid,COLOR_RED,"[XLGW]YOU HAVE BOUGHT A SPRAY CAN WITH 500 AMMO USE IT WELL");
}
}
}
return 1;
}
EDIT: Edited it.
Re: STUCK AGAIN!!??!! -
efrim123 - 28.07.2013
Try this
Pawn Code:
Код:
public OnDialogResponse();
if (dialogid == 20320 = && responce)
{
switch(listitem)
{
case 0:
{
ShowPlayerDialog(playerid,20321, DIALOG_STYLE_LIST, "[XL]WEAPON SHOP","m4($5000)\nSPRAYcan($1500)","buy weapon","leave"
}
}
}
if(dialogid == 20320 && responce
{
switch(listitem)
{
case 0:
{
if(GetPlayerMoney(playerid) < 5000 return SendClientMessage(playerid,COLOR_RED,"[XLGW]ERROR:YOU DO NOT ENOUGH MONEY TO BUY THIS WEAPON,GO AND KILL SOME MORE RIVAL GANGS);
GivePlayerWeapon(playerid, 31,1000);
GivePlayerMoney(playerid, -5000);
SendClientMessage(playerid,COLOR_RED,"[XLGW]YOU HAVE BOUGHT A M4 WITH 1000 AMMO USE IT WELL");
}
case 1:
{
if(GetPlayerMoney(playerid) < 1500 return SendClientMessage(playerid,COLOR_RED,"[XLGW]ERROR:YOU DO NOT ENOUGH MONEY TO BUY THIS WEAPON,GO AND KILL SOME MORE RIVAL GANGS);
GivePlayerWeapon(playerid, 41,500);
GivePlayerMoney(playerid, -1500);
SendClientMessage(playerid,COLOR_RED,"[XLGW]YOU HAVE BOUGHT A SPRAY CAN WITH 500 AMMO USE IT WELL");
}
}
}
return 1;
}
Re: STUCK AGAIN!!??!! -
kaos999 - 28.07.2013
LOL CAN U PLEASE EXPLAIN WHAT YOU HAVE DONE
AND THANKS BTW
Re: STUCK AGAIN!!??!! -
efrim123 - 28.07.2013
u didnt put it on the right function
is not good but
like we did it is good check on the difrence and you will get what we have changed
Re: STUCK AGAIN!!??!! -
JimmyCh - 28.07.2013
efrim I have no idea what you're so happy about, your code is fully wrong.
First thing I did, was remove the = && responce which is so wrong, secondly somewheres he forgot to put a closing
' " ' .
Also you got this:
if (GetPlayerMoney(playerid) < 1500) and not if(GetPlayerMoney(playerid) < 1500
Missing ")"
I forgot what else so nevermind.