01.04.2014, 13:22
hello everyone
i have been make skin system and vehicle system like these
but when i compile it i get these errors:
whats wrong with that code:
i have been make skin system and vehicle system like these
but when i compile it i get these errors:
whats wrong with that code:
Код:
#include <a_samp> #include <mSelection> new weaponlist = mS_INVALID_LISTID; public OnFilterScriptInit() { weaponlist = LoadModelSelectionMenu("weapons.txt"); return 1; } public OnPlayerCommandText(playerid, cmdtext[]) { if(strcmp(cmdtext, "/weapons", true) == 0) { ShowModelSelectionMenu(playerid, weaponlist, "Select Weapon"); return 1; } return 0; } public OnPlayerModelSelection(playerid, response, listid, weaponid) { if(listid == weaponlist) { if(response) { SendClientMessage(playerid, 0xFF0000FF, "Vehicle spawned"); GivePlayerWeapon(playerid, weaponid, 6000); } else SendClientMessage(playerid, 0xFF0000FF, "Vehicle selection has been cancelled"); return 1; } return 1; }