08.03.2014, 07:42
i got errors during compiling the script
i know how to fix indentation
but this error
i can't
that's the lines that gives errors
this command
fix it to me please
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. |
but this error
Quote:
warning 219: local variable "string" shadows a variable at a preceding level |
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!"); } |