SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Thread Tools Display Modes
Old 29/11/2011, 08:04 PM   #1
Huge Clucker
wumpyc's Avatar
Join Date: Jul 2011
Location: Z:\Users\1337
Posts: 373
Reputation: 12
Spray Respawn all unused cars

Hey I'm using PPC_TRUCKING and this is the code:
pawn Code:
        if (APlayerData[playerid][PlayerLevel] < 3)
              SendClientMessage(playerid, 0xFF0000FF, "You are not authorized to use that command!");
              return 1;
            new bool:unwanted[CAR_AMOUNT];         
            for(new player=0; player<MAX_PLAYERS; player++)
        if(IsPlayerInAnyVehicle(player)) { unwanted[GetPlayerVehicleID(player)]=true; }
            for(new car = 1; car <= 268; car++)
                if(!unwanted[car]) SetVehicleToRespawn(car);
            GetPlayerName(playerid, sendername, sizeof(sendername));
            format(string, sizeof(string), "SERVER: All unused cars respawned by %s.", sendername);
        return 1;
But i get these errors:
pawn Code:
C:\Documents and Settings\wumpyc\Desktop\PPC_Trucking6\pawno\include\ : warning 217: loose indentation
C:\Documents and Settings\wumpyc\Desktop\PPC_Trucking6\pawno\include\ : error 017: undefined symbol "CAR_AMOUNT"
C:\Documents and Settings\wumpyc\Desktop\PPC_Trucking6\pawno\include\ : error 009: invalid array size (negative, zero or out of bounds)
C:\Documents and Settings\wumpyc\Desktop\PPC_Trucking6\pawno\include\ : error 036: empty statement
C:\Documents and Settings\wumpyc\Desktop\PPC_Trucking6\pawno\include\ : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase

4 Errors.

Help pls
wumpyc is offline   Reply With Quote
Old 29/11/2011, 08:29 PM   #2
MP2's Avatar
Join Date: Jan 2011
Location: England
Posts: 6,230
Reputation: 992
Default Re: Respawn all unused cars
Click banner above for more info. View trailers here.
Enter referral code SAMPFORUM after registering for a $5000 starting bonus!
MP2 is offline   Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Respawning unused cars problem Tachibana Help Archive 10 23/06/2011 03:11 AM
Respawn all unused vehicles LZLo Help Archive 13 16/08/2010 01:40 PM
Tuned cars --after respawn--> normal cars Edna Krabapel Help Archive 8 31/01/2010 07:52 PM
[BUG] Unused vehicles do not respawn if they are pushed into water Sir_Brock Bug Reports 11 18/11/2009 01:02 AM
Respawn all cars KnooL Help Archive 9 27/02/2009 11:51 AM

All times are GMT. The time now is 02:10 AM.

Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.