09.12.2015, 12:02
Код:
../gamemodes/include/OnCommand.pwn(6) : error 017: undefined symbol "Playerid"
PHP код:
CMD:changeskin(playerid) // CMD for calling a change skin
{
new classid = PlayerClass[Playerid]; line 6
switch(classid)
{
case 0,1,2,3://GROVE
{
if(classid == 0 || classid == 1 || classid == 2)
{
ShowModelSelectionMenu(playerid, skingrove, "Select skin for grove");
}
}
case 4,5,6://LSPD
{
if(classid == 3 || classid == 4 || classid == 5 || classid == 6)
{
ShowModelSelectionMenu(playerid, skinpolice, "Select skin for police");
}
}
case 7,8,9://VAGOS
{
if(classid == 7 || classid == 8 || classid == 9)
{
ShowModelSelectionMenu(playerid, skingrove, "Select skin for vagos");
}
}
case 10,11,12,13://BALLAS
{
if(classid == 10 || classid == 11 || classid == 12)
{
ShowModelSelectionMenu(playerid, skinballas, "Select skin for grove");
}
return 1;
}
}
}