/respawncar problem
#1

When I add this
Код:
if(strcmp(cmd, "/respawnvehicles", true) == 0)
    {
        if (PlayerInfo[playerid][pAdmin] >= 5)
        {
            for(new i=0;i<MAX_VEHICLES;i++)
            {
                if(IsVehicleOccupied(i) == 0)
                {
                    SetVehicleToRespawn(i);
                }
            }
            format(string, sizeof(string), "[INFO:] Unoccupied vehicles respawned by %s.", GetPlayerNameEx(playerid));
            SendClientMessageToAll(COLOR_ADMINCMD, string);
        }
        else
        {
            SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "Your not an administrator.");
        }
        return 1;
    }
It gisplays me these errors

Код:
E:\games\sa-mp\cls\CLSREL~1.5FI\GAMEMO~1\jasons13.pwn(8454) : error 010: invalid function or declaration
E:\games\sa-mp\cls\CLSREL~1.5FI\GAMEMO~1\jasons13.pwn(8456) : error 010: invalid function or declaration
E:\games\sa-mp\cls\CLSREL~1.5FI\GAMEMO~1\jasons13.pwn(8458) : error 010: invalid function or declaration
E:\games\sa-mp\cls\CLSREL~1.5FI\GAMEMO~1\jasons13.pwn(8460) : error 010: invalid function or declaration
E:\games\sa-mp\cls\CLSREL~1.5FI\GAMEMO~1\jasons13.pwn(8468) : error 010: invalid function or declaration
E:\games\sa-mp\cls\CLSREL~1.5FI\GAMEMO~1\jasons13.pwn(8472) : error 010: invalid function or declaration
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


6 Errors.
Why is that?
Reply
#2

I tested your code, here it compiled successfully.
Reply
#3

I've done it.
Thanks to [SRC]stuntman
TC please
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)