SA-MP Forums Archive
AddPlayerClass problem.. - 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: AddPlayerClass problem.. (/showthread.php?tid=388620)



AddPlayerClass problem.. - Hade. - 29.10.2012

Hey, so i added 11 AddPlayerClass lines under OnGamemodeInt they work n stuff but i still have 11 warnings.. Can someone help?

Код:
C:\Users\ilmar\Desktop\Click Clack FUN Server\gamemodes\EEF1.pwn(130) : warning 202: number of arguments does not match definition
C:\Users\ilmar\Desktop\Click Clack FUN Server\gamemodes\EEF1.pwn(131) : warning 202: number of arguments does not match definition
C:\Users\ilmar\Desktop\Click Clack FUN Server\gamemodes\EEF1.pwn(132) : warning 202: number of arguments does not match definition
C:\Users\ilmar\Desktop\Click Clack FUN Server\gamemodes\EEF1.pwn(133) : warning 202: number of arguments does not match definition
C:\Users\ilmar\Desktop\Click Clack FUN Server\gamemodes\EEF1.pwn(134) : warning 202: number of arguments does not match definition
C:\Users\ilmar\Desktop\Click Clack FUN Server\gamemodes\EEF1.pwn(135) : warning 202: number of arguments does not match definition
C:\Users\ilmar\Desktop\Click Clack FUN Server\gamemodes\EEF1.pwn(136) : warning 202: number of arguments does not match definition
C:\Users\ilmar\Desktop\Click Clack FUN Server\gamemodes\EEF1.pwn(137) : warning 202: number of arguments does not match definition
C:\Users\ilmar\Desktop\Click Clack FUN Server\gamemodes\EEF1.pwn(138) : warning 202: number of arguments does not match definition
C:\Users\ilmar\Desktop\Click Clack FUN Server\gamemodes\EEF1.pwn(139) : warning 202: number of arguments does not match definition
C:\Users\ilmar\Desktop\Click Clack FUN Server\gamemodes\EEF1.pwn(140) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


11 Warnings.



Re: AddPlayerClass problem.. - NewerthRoleplay - 29.10.2012

Show them?


Re: AddPlayerClass problem.. - Hade. - 29.10.2012

Second....

Here thay are...

Код:
AddPlayerClass(293,1960.1999511719, 1343.0, 14.69999809265, 0, 0, 0, 0, 0, 0);
    AddPlayerClass(135,1960.1999511719, 1343.0, 14.69999809265, 0, 0, 0, 0, 0, 0);
    AddPlayerClass(105,1960.1999511719, 1343.0, 14.69999809265, 0, 0, 0, 0, 0, 0);
    AddPlayerClass(80,1960.1999511719, 1343.0, 14.69999809265, 0, 0, 0, 0, 0, 0);
    AddPlayerClass(67,1960.1999511719, 1343.0, 14.69999809265, 0, 0, 0, 0, 0, 0);
    AddPlayerClass(29,1960.1999511719, 1343.0, 14.69999809265, 0, 0, 0, 0, 0, 0);
    AddPlayerClass(28,1960.1999511719, 1343.0, 14.69999809265, 0, 0, 0, 0, 0, 0);
    AddPlayerClass(25,1960.1999511719, 1343.0, 14.69999809265, 0, 0, 0, 0, 0, 0);
    AddPlayerClass(21,1960.1999511719, 1343.0, 14.69999809265, 0, 0, 0, 0, 0, 0);
    AddPlayerClass(18,1960.1999511719, 1343.0, 14.69999809265, 0, 0, 0, 0, 0, 0);
    AddPlayerClass(0, 1960.1999511719, 1343.0, 14.69999809265, 0, 0, 0, 0, 0, 0);



Re: AddPlayerClass problem.. - YoYo123 - 29.10.2012

Make sure you type in the right number of parameters of this function. https://sampwiki.blast.hk/wiki/AddPlayerClass


Re: AddPlayerClass problem.. - NewerthRoleplay - 29.10.2012

there are 11 paramaters in that function, you have only used 10


Read this to see what you are missing


Re: AddPlayerClass problem.. - YoYo123 - 29.10.2012

You forgot the angle of the player. The angle of the player comes after the X, Y and Z coords. (see my first post)

BTW, if you type /save in-game in a certain position when on foot, the function itself will be saved in My Documents > GTA San Andreas User Files > SAMP > savedpositions.txt . There you will find the function itself ready to be pasted into your code


Re: AddPlayerClass problem.. - Hade. - 29.10.2012

jea, thaks guys this is really a dumb mistake :S