Code:
ShowPlayerDialog(playerid, DIALOG_WEAPON_SLOT1, DIALOG_STYLE_INPUT, "Saved weapon slot 1", "Please enter the weapon ID you wish to set your first slot to.", "Choose", "Cancel");
Code:
case DIALOG_WEAPON_SLOT1: { if(response) { if(PlayerData[playerid][e_gc] >= 100 || PlayerData[playerid][e_vip] == 1) { if(inputtext == 35 || inputtext == 36 || inputtext == 39 || inputtext == 44 || inputtext == 45|| inputtext == 40) return SCM(playerid, -1, ""er"You can not insert this weapon."); if(inputtext == 38 && PlayerData[playerid][e_level] != MAX_ADMIN_LEVEL) return SCM(playerid, -1, ":"er"You can not insert this weapon."); if(inputtext <= 0 && inputtext >= 47) { if(inputtext == 20) { SCM(playerid, -1, ""er"Invalid weapon ID provided!"); return 1; } SCM(playerid, -1, ""er"Invalid weapon ID provided!"); return 1; } PlayerData[playerid][e_weapon1] = inputtext; } else { SCM(playerid, -1, ""er"You are not a VIP nor have 100 GC."); } } }
Errors:
PHP Code:
(18654) : error 033: array must be indexed (variable "inputtext")
(18655) : error 033: array must be indexed (variable "inputtext")
(18656) : error 033: array must be indexed (variable "inputtext")
(18658) : error 033: array must be indexed (variable "inputtext")
Code:
if(inputtext == 35 || inputtext == 36 || inputtext == 39 || inputtext == 44 || inputtext == 45|| inputtext == 40) return SCM(playerid, -1, ""er"You can not insert this weapon."); if(inputtext == 38 && PlayerData[playerid][e_level] != MAX_ADMIN_LEVEL) return SCM(playerid, -1, ":"er"You can not insert this weapon."); if(inputtext <= 0 && inputtext >= 47) if(inputtext == 20)
This entry passed through the Full-Text RSS service - if this is your content and you're reading it on someone else's site, please read the FAQ at http://ift.tt/jcXqJW.
Recommended article from FiveFilters.org: Most Labour MPs in the UK Are Revolting.
The integer input in the DIALOG_STYLE_INPUT
Aucun commentaire:
Enregistrer un commentaire