errors -_-
#1

got some errors while making a /givecar [id] [carid] and got these errors -_-


C:\Users\iphone\Desktop\0.3e\filterscripts\Event_F s.pwn(64) : error 035: argument type mismatch (argument 2)
C:\Users\iphone\Desktop\0.3e\filterscripts\Event_F s.pwn(5 : warning 204: symbol is assigned a value that is never used: "car"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.

my code:
pawn Код:
CMD:givecar(playerid,params[])
{
   
    new carid;
    new id;
    new string[128];
    new Float:X, Float:Y, Float:Z, Float:angle;
    new car = CreateVehicle(carid, X, Y, Z, angle, 0, 1, 60);
    if(sscanf(params,"ir",carid, id)) return SendClientMessage(playerid,-1,"Error: - /givecar [id]"); // checking does sscanf found integer parameter
    GetPlayerPos(id, X, Y, Z);
    GetPlayerFacingAngle(id, angle);
    PutPlayerInVehicle(id, carid, 0);
    format(string, sizeof(string), "the admin has chose %s as the event car", GetPlayerVehicleID(playerid));
    SendClientMessageToAll(playerid, -1, string);
    return 1;
}
sorry if i did something wrong -_- im still learning
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: 2 Guest(s)