cmd to edit dynamic vehicle positions
#3

EDIT: Reworked cmd based on the enums but.
PHP Code:
E:\Linux no SUNC\gamemodes\HTLS-RP.pwn(5458) : error 017undefined symbol "vEdit"
E:\Linux no SUNC\gamemodes\HTLS-RP.pwn(5458) : warning 215expression has no effect
E
:\Linux no SUNC\gamemodes\HTLS-RP.pwn(5458) : error 001expected token";"but found "]"
E:\Linux no SUNC\gamemodes\HTLS-RP.pwn(5458) : error 029invalid expressionassumed zero
E
:\Linux no SUNC\gamemodes\HTLS-RP.pwn(5458) : fatal error 107too many error messages on one line
Compilation aborted
.Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase
4 Errors

PHP Code:
CMD:editveh(playeridparams[])
{
    new 
string[128], idx;
    if(!
IsPlayerLoggedIn(playerid)) return SendClientMessage(playeridCOLOR_GREY"You need to login first before using any command.");
    if(
PlayerInfo[playerid][pMapper] < 1) return SendClientMessage(playeridCOLOR_GREY"You are not authorized to use this command.");
    if(!
mDuty[playerid]) return SendClientMessage(playeridCOLOR_GREY"You are not on Mapper Duty.");
    if(
sscanf(params"i"idx)) return SendClientMessage(playeridCOLOR_WHITE"[Usage]: /editveh [vehicleid]");
    if(!
vvvehInfo[idx][vvvModel]) return SendClientMessage(playeridCOLOR_GREY"Invalid vehicle id.");
    
vEdit[playerid] = 1;
    
vEditID[playerid] = idx;
    
GetDynamicVehiclePos(vvvehInfo[idx][vvveh], vvvX[playerid][0], vvvY[playerid][1], vvvZ[playerid][2]);
    
GetDynamicVehicleRot(vvvehInfo[idx][vvveh], vvvAn[playerid][0], vvvC1[playerid][1], vvvC2[playerid][2]);
    
EditDynamicVehicle(playeridvvvehInfo[idx][vvveh]);
    
format(stringsizeof(string), " You are now editing vehicle ID %d's position."idx);
    
SendClientMessage(playeridCOLOR_WHITEstring);
    
format(stringsizeof(string), "MapperWarn: %s is editting vehicle ID %d's position.)"RPN(playerid), idx);
    
SendMapperMessage(COLOR_GREEN1string);
    return 
1;

Reply


Messages In This Thread
cmd to edit dynamic vehicle positions - by weedxd - 03.10.2014, 07:58
Respuesta: cmd to edit dynamic vehicle positions - by ghost556 - 03.10.2014, 08:01
Re: Respuesta: cmd to edit dynamic vehicle positions - by weedxd - 03.10.2014, 08:04
Respuesta: cmd to edit dynamic vehicle positions - by ghost556 - 03.10.2014, 08:19
Re: cmd to edit dynamic vehicle positions - by weedxd - 03.10.2014, 08:24

Forum Jump:


Users browsing this thread: 2 Guest(s)