SA-MP Forums Archive
What im doing wrong ? - 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: What im doing wrong ? (/showthread.php?tid=173103)



What im doing wrong ? - martynas - 01.09.2010

when i'm want to compile it says

: warning 202: number of arguments does not match definition
: warning 202: number of arguments does not match definition
: warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


3 Warnings.


if(strcmp(cmdtext, "/koor", true)==0)
{
new Float, Float:y, Float:z;
GetPlayerCameraPos(playerid, x, y, z);
SendClientMessage(playerid,RED,"The player left when they had their camera at %f,%f,%f.", x, y, z);
return 1;
}


it says that error on that line :

SendClientMessage(playerid,RED,"The player left when they had their camera at %f,%f,%f.", x, y, z);


Re: What im doing wrong ? - [XST]O_x - 01.09.2010

pawn Код:
if(strcmp(cmdtext,"/koor",true) == 0)
{
    new string[64],Float:x,Float:y,Float:z; GetPlayerCameraPos(playerid,x,y,z);      
    format(string,sizeof(string),"The player left when they had their camera at %f,%f,%f.",x,y,z);
    SendClientMessage(playerid,RED,string);
    return 1;
}



Re: What im doing wrong ? - martynas - 01.09.2010

THANKS now works