why warning?
#1

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
Reply
#2

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;
}
Reply
#3

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
Reply
#4

post line 37 of your script
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)