SA-MP Forums Archive
why warning? - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: why warning? (/showthread.php?tid=75535)



why warning? - RenisiL - 02.05.2009

Quote:

public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
new string[128];
new Text:IC;
IC = TextDrawCreate(260, 398,"~p~Car ID:%d",vehicleid);
TextDrawAlignment(IC,0);
TextDrawBackgroundColor(IC,0x000000ff);
TextDrawFont(IC,1);
TextDrawLetterSize(IC,0.699999,1.600000);
TextDrawColor(IC,0xffffffff);
TextDrawSetOutline(IC,1);
TextDrawSetProportional(IC,1);
TextDrawSetShadow(IC,1);
return 1;
}

warning

Quote:

C:\Documents and Settings\LT\Desktop\Untitled.pwn(3 : warning 202: number of arguments does not match definition
C:\Documents and Settings\LT\Desktop\Untitled.pwn(36) : warning 204: symbol is assigned a value that is never used: "string"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


2 Warnings.

please help thanks


Re: why warning? - Kyle - 02.05.2009

public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
new Text:IC;
IC = TextDrawCreate(260, 398,"~p~Car ID:%d",vehicleid);
TextDrawAlignment(IC,0);
TextDrawBackgroundColor(IC,0x000000ff);
TextDrawFont(IC,1);
TextDrawLetterSize(IC,0.699999,1.600000);
TextDrawColor(IC,0xffffffff);
TextDrawSetOutline(IC,1);
TextDrawSetProportional(IC,1);
TextDrawSetShadow(IC,1);
return 1;
}


Re: why warning? - RenisiL - 02.05.2009

Quote:

C:\Documents and Settings\LT\Desktop\Untitled.pwn(37) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Warning.

why warning 1 now


Re: why warning? - member - 02.05.2009

post line 37 of your script