Symble Never Used: Vspawn
#1

Heres the CMD

PHP код:
CMD:vspawn(playerid,params[])
{
    new 
veh,Float:x,Float:y,Float:z;
    if(
sscanf(params,"d",veh)) return SendClientMessage(playerid,COLOR_GRAY,"Format: /vspawn [vehid]");
    else if(
veh 400 || veh 611) return SendClientMessage(playerid,COLOR_WHITE,"SERVER: Vehicle ID's range from 400-611.");
    else
    {
        
GetPlayerPos(playerid,x,y,z);
        
CreateVehicle(veh,x,y,z,0,0,0,-1);
        
SendClientMessage(playerid,COLOR_WHITE,"Vehicle Spawned.");
    }
    return 
1;

and it says its on Line 336 but there isnt any line 366 please help?

Also how would I make it so it sets the player into the vehicle?
Reply
#2

try like this
Quote:

#pragma unused vspawn

Reply
#3

CTRL + F and search the keyword.
Reply
#4

I'v searched Vspawn and its only used on CMD:vspawn(playerid,params[])
Reply
#5

I have an almost same problem. I have remove the /carcolor command from the gamemode and if I type in-game /carcolor, it appears * Usage: /carcolor [color1] [color2]
Reply
#6

Try searching for 'new vspawn;', you might also want to try and copy your pawn code into notepad, and redo the search, that way you can see everything with vspawn in it.
Reply
#7

does your gamemode has only 335 lines?
Reply
#8

I think it like
pawn Код:
new vspawn;
that never used and appears error at the last line of the gamemode
Reply
#9

Quote:
Originally Posted by Kostas'
Посмотреть сообщение
I have an almost same problem. I have remove the /carcolor command from the gamemode and if I type in-game /carcolor, it appears * Usage: /carcolor [color1] [color2]
Did you re-compile and restart the server?
Reply
#10

No, I literally just started a new freeroam ( Got bored with my Team deathmatch ) and I just made the /vspawn so I can get around easy and I have no new vspawn; all I wrote in the gamemode was the registration system and the command CMD:vspawn
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)