23.01.2011, 23:11
Mergin a filterscript into the Gamemode
Here's the code:
i dont know iff its because its already defined i already have #pragma tabsize 0 in there.
keep gettin this error:
Please some help here
Here's the code:
pawn Код:
new cartype = GetPlayerVehicleID(playerid);
pawn Код:
new State=GetPlayerState(playerid);
pawn Код:
if(strcmp(cmdtext, "/neonshop", true) == 0)
{
SetPlayerInterior(playerid,0);
{if(State!=PLAYER_STATE_DRIVER)
{SetPlayerPos(playerid,-1980.0026,474.2643,29);}
else if(IsPlayerInVehicle(playerid, cartype) == 1)
{SetVehiclePos(cartype,-1980.0026,474.2643,29);
SetVehicleZAngle(cartype,180.1530);}
else
{SetPlayerPos(playerid,-1980.0026,474.2643,29);}
SendClientMessage(playerid, COLOR_YELLOW,"Type /neon in the garage to pick a neon!");}
return 1;}
if (strcmp(cmdtext, "/neon", true)==0)
{
if(IsPlayerInRangeOfPoint(playerid, 7.0, -1979.3672,440.1091,27))
{
ShowPlayerDialog(playerid, 8899, DIALOG_STYLE_LIST, "Pick Neon Color", "Blue\nRed\nGreen\nWhite\nPink\nYellow\nPolice Strobe\nInterior Lights\nBack Neon\nFront neon\nUndercover Roof Light\nRemove All Neon", "Select", "Cancel");
PlayerPlaySound(playerid, 1133, 0.0, 0.0, 10.0);
}
return 1;
}
keep gettin this error:
pawn Код:
warning 219: local variable "State" shadows a variable at a preceding level