10.01.2013, 17:47
Hello,
I am new to scripting and planning to rescript a gamemode.
Recently i have this error:
This is my code:
Additional infromation:
I am working with 0.3e, I read alot of topics but still couldn't understand the error. If possible please reply with a fixed code. I would like to rep+ you.
Please do not blame on me because i am bad at scripting.
I am new to scripting and planning to rescript a gamemode.
Recently i have this error:
pawn Код:
C:\Users\sduser\Desktop\GTA Project\TranspWorld\gamemodes\Bus.pwn(464) : warning 217: loose indentation
C:\Users\sduser\Desktop\GTA Project\TranspWorld\gamemodes\Bus.pwn(503) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
2 Warnings.
pawn Код:
if(!strcmp("/work", cmdtext, true))
{
new pvehiclemodel = GetVehicleModel(GetPlayerVehicleID(playerid));
if (pvehiclemodel == 437 || pvehiclemodel == 431)
{
TextDrawHideForPlayer(playerid, NotWorking);
if (IsPlayerInMission[playerid] == 1) return SendClientMessage(playerid, 0xFF0000AA, ">> You are currently in a mission use \"/cancelmission\" to cancel your current mission!"); // prevents them de starting another mission
new rand = random(sizeof(TruckingMissionRandom));
IsPlayerInMission[playerid] = 1; // asign it to 1 becuase there in a mission
CreatePlayerMission(playerid, TruckingMissionRandom[rand][UseTrailerCheck], TruckingMissionRandom[rand][MissionPay], TruckingMissionRandom[rand][loadx],TruckingMissionRandom[rand][loady], TruckingMissionRandom[rand][loadz], TruckingMissionRandom[rand][unloadx],TruckingMissionRandom[rand][unloady], TruckingMissionRandom[rand][unloadz]);
SendClientMessage(playerid, 0x00FF00FF, "You start a mission! Take a look in the info. box bellow !.");
new Cock[128];
format(Cock, sizeof(Cock), "%s", TruckingMissionRandom[rand][MissionName]);
TextDrawSetString(Working, Cock);
TextDrawShowForPlayer(playerid, Working);
}
else
{
SendClientMessage(playerid, 0xFF0000AA, "Im sorry but this mission requires that you use a vehicle that can pull a semi trailer Ex: Roadtrain with an Artict1!");
}
return 1;
}
if (strcmp(cmdtext, "/reglas", true)==0)
{
ShowPlayerDialog(playerid, 8899, DIALOG_STYLE_MSGBOX, "Reglas","1. No cheats, mods cleo and any hack!\n\n2. No DM.\n\n3. Respec all players.\n\n4. No crash for fun.\n\n5. No Flood/Spam ", "I' Agree", "KICK");
PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
return 1;
}
if(!strcmp("/stopwork", cmdtext, true))
{
if (IsPlayerInMission[playerid] == 0) return SendClientMessage(playerid, 0xFF0000AA, "You are not working idiot !"); // prevents them if there currently not in a mission
IsPlayerInMission[playerid] = 0; // resets it so they can start another mission
CancelPlayersCurrentMission(playerid);
return 1;
}
return ShowPlayerDialog(playerid, Rules, DIALOG_STYLE_MSGBOX, "{00F6F6}Error 404 Not Found - Unknow Command:",ErrorCMD, "Salir");
}
I am working with 0.3e, I read alot of topics but still couldn't understand the error. If possible please reply with a fixed code. I would like to rep+ you.
Please do not blame on me because i am bad at scripting.