errors -_-
#2

pawn Код:
CMD:givecar(playerid,params[])
{
   
    new carid;
    new id;
    new string[128];
    new Float:X, Float:Y, Float:Z, Float:angle;
    if(sscanf(params,"ir",carid, id)) return SendClientMessage(playerid,-1,"Error: - /givecar [car id] [player id]"); // checking does sscanf found integer parameter
    GetPlayerPos(id, X, Y, Z);
    GetPlayerFacingAngle(id, angle);
   CreateVehicle(carid, X, Y, Z, angle, 0, 1, 60);
    PutPlayerInVehicle(id, carid, 0);
    format(string, sizeof(string), "the admin has chose %s as the event car", GetPlayerVehicleID(playerid));
    SendClientMessageToAll(string);
    return 1;
}
I have corrected it. Try:
Reply


Messages In This Thread
errors -_- - by thefatshizms - 30.05.2012, 18:26
Re: errors -_- - by pasha97 - 30.05.2012, 18:57
Re: errors -_- - by thefatshizms - 30.05.2012, 19:01
Re: errors -_- - by pasha97 - 30.05.2012, 19:03
Re: errors -_- - by pasha97 - 30.05.2012, 19:05
Re: errors -_- - by thefatshizms - 30.05.2012, 19:05
Re: errors -_- - by IceCube! - 30.05.2012, 19:08
Re: errors -_- - by thefatshizms - 30.05.2012, 19:12
Re: errors -_- - by thefatshizms - 30.05.2012, 19:43
Re: errors -_- - by thefatshizms - 30.05.2012, 20:55

Forum Jump:


Users browsing this thread: 1 Guest(s)