24.06.2011, 21:44
well... on dialog response 1 - 9 its okay
when the 10 - 14 its going error
the erorrs
the code... on (5366 -- 5416)
what the hell happen??
are Dialog_Style_Input cannot response 2 numbers or more ??
help pls
when the 10 - 14 its going error
the erorrs
Код:
D:\GTA SERVER\GTA Server\filterscripts\asdasd.pwn(5366) : error 027: invalid character constant D:\GTA SERVER\GTA Server\filterscripts\asdasd.pwn(5366) : error 027: invalid character constant D:\GTA SERVER\GTA Server\filterscripts\asdasd.pwn(5366 -- 5367) : error 029: invalid expression, assumed zero D:\GTA SERVER\GTA Server\filterscripts\asdasd.pwn(5366 -- 5367) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.
Код:
else if(inputtext[0] == '10') { if(GetPlayerMoney(playerid) < 9000) return SendClientMessage(playerid, 0xFFFFFFFF, NEC); else { GivePlayerMoney(playerid, -9000); GivePlayerWeapon(playerid, 33, 800); SendClientMessage(playerid, 0xFFFFFFFF, "Buying weapon success."); } } else if(inputtext[0] == '11') { if(GetPlayerMoney(playerid) < 10000) return SendClientMessage(playerid, 0xFFFFFFFF, NEC); else { GivePlayerMoney(playerid, -10000); GivePlayerWeapon(playerid, 34, 800); SendClientMessage(playerid, 0xFFFFFFFF, "Buying weapon success."); } } else if(inputtext[0] == '12') { if(GetPlayerMoney(playerid) < 6500) return SendClientMessage(playerid, 0xFFFFFFFF, NEC); else { GivePlayerMoney(playerid, -6500); GivePlayerWeapon(playerid, 30, 1000); SendClientMessage(playerid, 0xFFFFFFFF, "Buying weapon success."); } } else if(inputtext[0] == '13') { if(GetPlayerMoney(playerid) < 7000) return SendClientMessage(playerid, 0xFFFFFFFF, NEC); else { GivePlayerMoney(playerid, -7000); GivePlayerWeapon(playerid, 31, 1000); SendClientMessage(playerid, 0xFFFFFFFF, "Buying weapon success."); } } else if(inputtext[0] == '14') { if(GetPlayerMoney(playerid) < 300) return SendClientMessage(playerid, 0xFFFFFFFF, NEC); else { GivePlayerMoney(playerid, -300); SetPlayerHealth(playerid, 100); SetPlayerArmour(playerid, 100); SendClientMessage(playerid, 0xFFFFFFFF, "Buying weapon success."); } }
are Dialog_Style_Input cannot response 2 numbers or more ??
help pls