I Got a warrning, any Help
#1

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
if (strcmp("/v bansh", cmdtext, true, 10) == 0)
{
    if(IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_RED, "ERROR: You already have a Vehicle");
    if(Veh[playerid] != 0) DestroyVehicle(Veh[playerid]);continue the rest of the command
    new Float:x, Float:y, Float:z, Float:angle;
    GetPlayerPos(playerid, x, y, z);
    GetPlayerFacingAngle(playerid, angle);
    Veh[playerid] = CreateVehicle(429, x, y, z, angle, 0, 0, 60);
    PutPlayerInVehicle(playerid, Veh[playerid], 0);
    ChangeVehicleColor(Veh[playerid], 2, 1);
    return 1;
}
Now i get this Warning
Quote:

.pwn(243) : warning 209: function "OnPlayerCommandText" should return a value

how can i fix it ?

and how can i add more Commands under it ?

Sory But iam New in Scripiting
Reply


Messages In This Thread
I Got a warrning, any Help - by Compton. - 07.06.2012, 10:00
Re: I Got a warrning, any Help - by Stefand - 07.06.2012, 10:02
Re: I Got a warrning, any Help - by Compton. - 07.06.2012, 10:04
Re: I Got a warrning, any Help - by Stefand - 07.06.2012, 10:10
Re: I Got a warrning, any Help - by Compton. - 07.06.2012, 10:13
Re: I Got a warrning, any Help - by Stefand - 07.06.2012, 10:15
Re: I Got a warrning, any Help - by MadeMan - 07.06.2012, 10:19
Re: I Got a warrning, any Help - by Compton. - 07.06.2012, 10:23

Forum Jump:


Users browsing this thread: 1 Guest(s)