30.01.2012, 11:35
my code
but i got Warning;
pawn Код:
dcmd_adcar(playerid, params[])
{
if(AdminLevel[playerid] == 1)
{
#pragma unused params
if (!IsPlayerInAnyVehicle(playerid))
{
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
CreateVehicle(411,x,y,z,100,0,0,99999);
}
else return SendClientMessage(playerid, COLOR_RED,"Error: You already have a vehicle");
}
}
Код:
C:\Users\eesti\Desktop\test1\CRP\gamemodes\SFCRRPG.pwn(3762) : warning 209: function "dcmd_adcar" should return a value Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Warning.