12.04.2009, 15:39
dcmd_dance(playerid,params[])
{
new tmp;
tmp = strval(params);
new dancestyle = tmp;
if(dancestyle < 1 || dancestyle > 4)
{
SendClientMessage(playerid,0xFF0000FF,"USAGE: /dance [style 1-4]");
return 1;
}
if(dancestyle == 1) {
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DAN CE1);
} else if(dancestyle == 2) {
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DAN CE2);
} else if(dancestyle == 3) {
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DAN CE3);
} else if(dancestyle == 4) {
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DAN CE4);
}
return 1;
}
This gives me 1 warning and it does not work... It only stands USAGE: /dance [style 1-4] when i type the command...
C:\Users\Robin\Desktop\Simons server\filterscripts\vactions.pwn(395) : warning 203: symbol is never used: "dancestyle"
{
new tmp;
tmp = strval(params);
new dancestyle = tmp;
if(dancestyle < 1 || dancestyle > 4)
{
SendClientMessage(playerid,0xFF0000FF,"USAGE: /dance [style 1-4]");
return 1;
}
if(dancestyle == 1) {
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DAN CE1);
} else if(dancestyle == 2) {
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DAN CE2);
} else if(dancestyle == 3) {
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DAN CE3);
} else if(dancestyle == 4) {
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DAN CE4);
}
return 1;
}
This gives me 1 warning and it does not work... It only stands USAGE: /dance [style 1-4] when i type the command...
C:\Users\Robin\Desktop\Simons server\filterscripts\vactions.pwn(395) : warning 203: symbol is never used: "dancestyle"