I need some help with this :P - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: I need some help with this :P (
/showthread.php?tid=280136)
I need some help with this :P -
Shockey HD - 30.08.2011
pawn Код:
dcmd_lp(playerid,params[])
{
new id,lp,string[128],oldname[MAX_PLAYER_NAME];
if(sscanf(params, "us[30]",id,lp)) SendClientMessage(playerid,COLOR_RED," Usage: /lp [ID] [Lisense Plate]");
else if(id == INVALID_PLAYER_ID) SendClientMessage(playerid,COLOR_RED,"Error: Player Not Connected!");
else
{
GetPlayerName(id,oldname,sizeof(oldname));
new vehicleid = GetPlayerVehicleID(id);
SetVehicleNumberPlate(vehicleid,lp);
format(string,sizeof(string),"» Admin %s(ID:%d) has set "lblue"%s(ID:%d)'s"lgreen2"License Player To:"lblue"%s",GetPName(playerid),playerid,oldname,id,lp);
SendClientMessageToAll(green2,string);
}
return 1;
}
SetVehicleNumberPlate(vehicleid,lp);
im getting a
Код:
C:\Documents and Settings\Chris\Desktop\Trucking\gamemodes\Trucking.pwn(2712) : error 035: argument type mismatch (argument 2)
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
Re: I need some help with this :P -
Zonoya - 30.08.2011
edit : i cant help sorry
Re: I need some help with this :P -
[MWR]Blood - 30.08.2011
pawn Код:
new id,lp[30],string[128],oldname[MAX_PLAYER_NAME];
Re: I need some help with this :P -
emokidx - 30.08.2011
Quote:
Originally Posted by Shockey HD
new id,lp
|
i think that needs to be " lp[128]" something
you know, a string?
EDIT:LATE