SA-MP Forums Archive
Basic Help for Beginner - 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: Basic Help for Beginner (/showthread.php?tid=533004)



Basic Help for Beginner - x4hi - 21.08.2014

I am getting 3 warning from Pawno and I'm not sure what they mean, the game mode is doing exactly what I want. I am just OCD about them. Syntax error? I'm working with the new script given in Pawno. I apologize if I am bringing up an answered topic.

C:\Users\chris\Downloads\samp03z_svr_R4_win32\game modes\StreetDM.pwn(4 : warning 202: number of arguments does not match definition
C:\Users\chris\Downloads\samp03z_svr_R4_win32\game modes\StreetDM.pwn(49) : warning 202: number of arguments does not match definition
C:\Users\chris\Downloads\samp03z_svr_R4_win32\game modes\StreetDM.pwn(50) : warning 213: tag mismatch

3 Warnings.

The Code:

public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid, 2442.6914,-1663.4183,27.1443,264.0869);
SetPlayerCameraPos(playerid, 2442.6914,-1663.4183,27.1443,264.0869);
SetPlayerCameraLookAt(playerid, 2442.6914,-1663.4183,27.1443,264.0869);
return 1;
}


Re: Basic Help for Beginner - ball - 21.08.2014

In each function you have four floats - three are needed. Remove last float from each function.


Re: Basic Help for Beginner - x4hi - 21.08.2014

Quote:
Originally Posted by ball
Посмотреть сообщение
In each function you have four floats - three are needed. Remove last float from each function.
Thank you.