Errors :/
#1

i got errors during compiling the script
Quote:

C:\Documents and Settings\Ayman\Desktop\New Folder\gamemodes\Rolenroleplay.pwn(22107) : warning 217: loose indentation
C:\Documents and Settings\Ayman\Desktop\New Folder\gamemodes\Rolenroleplay.pwn(22274) : warning 217: loose indentation
C:\Documents and Settings\Ayman\Desktop\New Folder\gamemodes\Rolenroleplay.pwn(2228 : warning 217: loose indentation
C:\Documents and Settings\Ayman\Desktop\New Folder\gamemodes\Rolenroleplay.pwn(22316) : warning 219: local variable "name" shadows a variable at a preceding level
C:\Documents and Settings\Ayman\Desktop\New Folder\gamemodes\Rolenroleplay.pwn(22316) : warning 219: local variable "string" shadows a variable at a preceding level
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


5 Warnings.

i know how to fix indentation
but this error
Quote:

warning 219: local variable "string" shadows a variable at a preceding level

i can't

that's the lines that gives errors

this command
Quote:

if (strcmp("/pizza", cmdtext, true, 10) == 0)
{
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 44
{
PizzaJob[playerid] = 1;
new name[MAX_PLAYER_NAME], string[48];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "* %s is now a Pizzaboy.", name );
SendClientMessageToAll(COLOR_YELLOW, string);
SetPlayerCheckpoint(playerid,2012.6134,-1729.3796,13.1536,10);
SendClientMessage(playerid,COLOR_YELLOW,"* Follow the red markers and you'll recieve money!");
return 1;
}
SendClientMessage(playerid, COLOR_RED,"You have to be on a pizza bike to start the job!");
}

fix it to me please
Reply


Messages In This Thread
Errors :/ - by mahmoudalzamalkawy - 08.03.2014, 07:42
Re: Errors :/ - by rangerxxll - 08.03.2014, 07:58
Re: Errors :/ - by GalaxyHostFree - 08.03.2014, 08:00
Re: Errors :/ - by Astralis - 08.03.2014, 08:01
Re: Errors :/ - by mahmoudalzamalkawy - 08.03.2014, 08:48
Re: Errors :/ - by RyanPetersons - 08.03.2014, 09:01

Forum Jump:


Users browsing this thread: 3 Guest(s)