AddPlayerClass problem..
#1

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

Show them?
Reply
#3

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

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

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


Read this to see what you are missing
Reply
#6

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)