Addplayerclass warning ?
#1

idk why i get these warnings ? can someone tell me what's wrong ? it gives me warning of everysingle skin
Код:
public OnGameModeInit()
{
AddPlayerClass(3,2098.9939, 1158.6058, 24.5625,0,0,0,0,0,0);
AddPlayerClass(4,2098.9939, 1158.6058, 24.5625,0,0,0,0,0,0);
AddPlayerClass(5,2098.9939, 1158.6058, 24.5625,0,0,0,0,0,0);
AddPlayerClass(6,2098.9939, 1158.6058, 24.5625,0,0,0,0,0,0);
AddPlayerClass(7,2098.9939, 1158.6058, 24.5625,0,0,0,0,0,0);
AddPlayerClass(8,2098.9939, 1158.6058, 24.5625,0,0,0,0,0,0);
AddPlayerClass(9,2098.9939, 1158.6058, 24.5625,0,0,0,0,0,0);
AddPlayerClass(10,2098.9939, 1158.6058, 24.5625,0,0,0,0,0,0);
AddPlayerClass(11,2098.9939, 1158.6058, 24.5625,0,0,0,0,0,0);
AddPlayerClass(12,2098.9939, 1158.6058, 24.5625,0,0,0,0,0,0);
AddPlayerClass(13,2098.9939, 1158.6058, 24.5625,0,0,0,0,0,0);
AddPlayerClass(14,2098.9939, 1158.6058, 24.5625,0,0,0,0,0,0);
AddPlayerClass(15,2098.9939, 1158.6058, 24.5625,0,0,0,0,0,0);
AddPlayerClass(16,2098.9939, 1158.6058, 24.5625,0,0,0,0,0,0);
AddPlayerClass(17,2098.9939, 1158.6058, 24.5625,0,0,0,0,0,0);
AddPlayerClass(18,2098.9939, 1158.6058, 24.5625,0,0,0,0,0,0);
AddPlayerClass(19,2098.9939, 1158.6058, 24.5625,0,0,0,0,0,0);
AddPlayerClass(20,2098.9939, 1158.6058, 24.5625,0,0,0,0,0,0);
AddPlayerClass(21,2098.9939, 1158.6058, 24.5625,0,0,0,0,0,0);
AddPlayerClass(22,2098.9939, 1158.6058, 24.5625,0,0,0,0,0,0);
AddPlayerClass(23,2098.9939, 1158.6058, 24.5625,0,0,0,0,0,0);
AddPlayerClass(189,2098.9939, 1158.6058, 24.5625,0,0,0,0,0,0);
AddPlayerClass(190,2098.9939, 1158.6058, 24.5625,0,0,0,0,0,0);
AddPlayerClass(191,2098.9939, 1158.6058, 24.5625,0,0,0,0,0,0);
AddPlayerClass(192,2098.9939, 1158.6058, 24.5625,0,0,0,0,0,0);
AddPlayerClass(193,2098.9939, 1158.6058, 24.5625,0,0,0,0,0,0);
AddPlayerClass(194,2098.9939, 1158.6058, 24.5625,0,0,0,0,0,0);
AddPlayerClass(195,2098.9939, 1158.6058, 24.5625,0,0,0,0,0,0);
AddPlayerClass(196,2098.9939, 1158.6058, 24.5625,0,0,0,0,0,0);
AddPlayerClass(197,2098.9939, 1158.6058, 24.5625,0,0,0,0,0,0);
AddPlayerClass(198,2098.9939, 1158.6058, 24.5625,0,0,0,0,0,0);
AddPlayerClass(199,2098.9939, 1158.6058, 24.5625,0,0,0,0,0,0);
AddPlayerClass(200,2098.9939, 1158.6058, 24.5625,0,0,0,0,0,0);
AddPlayerClass(201,2098.9939, 1158.6058, 24.5625,0,0,0,0,0,0);
AddPlayerClass(202,2098.9939, 1158.6058, 24.5625,0,0,0,0,0,0);
AddPlayerClass(203,2098.9939, 1158.6058, 24.5625,0,0,0,0,0,0);
AddPlayerClass(204,2098.9939, 1158.6058, 24.5625,0,0,0,0,0,0);
AddPlayerClass(205,2098.9939, 1158.6058, 24.5625,0,0,0,0,0,0);
AddPlayerClass(232,2098.9939, 1158.6058, 24.5625,0,0,0,0,0,0);
AddPlayerClass(233,2098.9939, 1158.6058, 24.5625,0,0,0,0,0,0);
AddPlayerClass(234,2098.9939, 1158.6058, 24.5625,0,0,0,0,0,0);
Код:
Compressed\newtest\gamemodes\fgame.pwn(2665) : warning 202: number of arguments does not match definition
Compressed\newtest\gamemodes\fgame.pwn(2666) : warning 202: number of arguments does not match definition
Compressed\newtest\gamemodes\fgame.pwn(2667) : warning 202: number of arguments does not match definition
Compressed\newtest\gamemodes\fgame.pwn(2668) : warning 202: number of arguments does not match definition
Compressed\newtest\gamemodes\fgame.pwn(2669) : warning 202: number of arguments does not match definition
Compressed\newtest\gamemodes\fgame.pwn(2670) : warning 202: number of arguments does not match definition
Compressed\newtest\gamemodes\fgame.pwn(2671) : warning 202: number of arguments does not match definition
Compressed\newtest\gamemodes\fgame.pwn(2672) : warning 202: number of arguments does not match definition
Compressed\newtest\gamemodes\fgame.pwn(2673) : warning 202: number of arguments does not match definition
Compressed\newtest\gamemodes\fgame.pwn(2674) : warning 202: number of arguments does not match definition
Compressed\newtest\gamemodes\fgame.pwn(2675) : warning 202: number of arguments does not match definition
Compressed\newtest\gamemodes\fgame.pwn(2676) : warning 202: number of arguments does not match definition
Compressed\newtest\gamemodes\fgame.pwn(2677) : warning 202: number of arguments does not match definition
Compressed\newtest\gamemodes\fgame.pwn(2678) : warning 202: number of arguments does not match definition
Compressed\newtest\gamemodes\fgame.pwn(2679) : warning 202: number of arguments does not match definition
Reply
#2

https://sampwiki.blast.hk/wiki/AddPlayerClass
PHP код:
Float:Angle 
Reply
#3

Quote:
Originally Posted by Xdrime
Посмотреть сообщение
idk why i get these warnings ? can someone tell me what's wrong ? it gives me warning of everysingle skin
Код:
public OnGameModeInit()
{
AddPlayerClass(3,2098.9939, 1158.6058, 24.5625,0,0,0,0,0,0);
AddPlayerClass(4,2098.9939, 1158.6058, 24.5625,0,0,0,0,0,0);
AddPlayerClass(5,2098.9939, 1158.6058, 24.5625,0,0,0,0,0,0);
AddPlayerClass(6,2098.9939, 1158.6058, 24.5625,0,0,0,0,0,0);
AddPlayerClass(7,2098.9939, 1158.6058, 24.5625,0,0,0,0,0,0);
AddPlayerClass(8,2098.9939, 1158.6058, 24.5625,0,0,0,0,0,0);
AddPlayerClass(9,2098.9939, 1158.6058, 24.5625,0,0,0,0,0,0);
AddPlayerClass(10,2098.9939, 1158.6058, 24.5625,0,0,0,0,0,0);
AddPlayerClass(11,2098.9939, 1158.6058, 24.5625,0,0,0,0,0,0);
AddPlayerClass(12,2098.9939, 1158.6058, 24.5625,0,0,0,0,0,0);
AddPlayerClass(13,2098.9939, 1158.6058, 24.5625,0,0,0,0,0,0);
AddPlayerClass(14,2098.9939, 1158.6058, 24.5625,0,0,0,0,0,0);
AddPlayerClass(15,2098.9939, 1158.6058, 24.5625,0,0,0,0,0,0);
AddPlayerClass(16,2098.9939, 1158.6058, 24.5625,0,0,0,0,0,0);
AddPlayerClass(17,2098.9939, 1158.6058, 24.5625,0,0,0,0,0,0);
AddPlayerClass(18,2098.9939, 1158.6058, 24.5625,0,0,0,0,0,0);
AddPlayerClass(19,2098.9939, 1158.6058, 24.5625,0,0,0,0,0,0);
AddPlayerClass(20,2098.9939, 1158.6058, 24.5625,0,0,0,0,0,0);
AddPlayerClass(21,2098.9939, 1158.6058, 24.5625,0,0,0,0,0,0);
AddPlayerClass(22,2098.9939, 1158.6058, 24.5625,0,0,0,0,0,0);
AddPlayerClass(23,2098.9939, 1158.6058, 24.5625,0,0,0,0,0,0);
AddPlayerClass(189,2098.9939, 1158.6058, 24.5625,0,0,0,0,0,0);
AddPlayerClass(190,2098.9939, 1158.6058, 24.5625,0,0,0,0,0,0);
AddPlayerClass(191,2098.9939, 1158.6058, 24.5625,0,0,0,0,0,0);
AddPlayerClass(192,2098.9939, 1158.6058, 24.5625,0,0,0,0,0,0);
AddPlayerClass(193,2098.9939, 1158.6058, 24.5625,0,0,0,0,0,0);
AddPlayerClass(194,2098.9939, 1158.6058, 24.5625,0,0,0,0,0,0);
AddPlayerClass(195,2098.9939, 1158.6058, 24.5625,0,0,0,0,0,0);
AddPlayerClass(196,2098.9939, 1158.6058, 24.5625,0,0,0,0,0,0);
AddPlayerClass(197,2098.9939, 1158.6058, 24.5625,0,0,0,0,0,0);
AddPlayerClass(198,2098.9939, 1158.6058, 24.5625,0,0,0,0,0,0);
AddPlayerClass(199,2098.9939, 1158.6058, 24.5625,0,0,0,0,0,0);
AddPlayerClass(200,2098.9939, 1158.6058, 24.5625,0,0,0,0,0,0);
AddPlayerClass(201,2098.9939, 1158.6058, 24.5625,0,0,0,0,0,0);
AddPlayerClass(202,2098.9939, 1158.6058, 24.5625,0,0,0,0,0,0);
AddPlayerClass(203,2098.9939, 1158.6058, 24.5625,0,0,0,0,0,0);
AddPlayerClass(204,2098.9939, 1158.6058, 24.5625,0,0,0,0,0,0);
AddPlayerClass(205,2098.9939, 1158.6058, 24.5625,0,0,0,0,0,0);
AddPlayerClass(232,2098.9939, 1158.6058, 24.5625,0,0,0,0,0,0);
AddPlayerClass(233,2098.9939, 1158.6058, 24.5625,0,0,0,0,0,0);
AddPlayerClass(234,2098.9939, 1158.6058, 24.5625,0,0,0,0,0,0);
Код:
Compressed\newtest\gamemodes\fgame.pwn(2665) : warning 202: number of arguments does not match definition
Compressed\newtest\gamemodes\fgame.pwn(2666) : warning 202: number of arguments does not match definition
Compressed\newtest\gamemodes\fgame.pwn(2667) : warning 202: number of arguments does not match definition
Compressed\newtest\gamemodes\fgame.pwn(2668) : warning 202: number of arguments does not match definition
Compressed\newtest\gamemodes\fgame.pwn(2669) : warning 202: number of arguments does not match definition
Compressed\newtest\gamemodes\fgame.pwn(2670) : warning 202: number of arguments does not match definition
Compressed\newtest\gamemodes\fgame.pwn(2671) : warning 202: number of arguments does not match definition
Compressed\newtest\gamemodes\fgame.pwn(2672) : warning 202: number of arguments does not match definition
Compressed\newtest\gamemodes\fgame.pwn(2673) : warning 202: number of arguments does not match definition
Compressed\newtest\gamemodes\fgame.pwn(2674) : warning 202: number of arguments does not match definition
Compressed\newtest\gamemodes\fgame.pwn(2675) : warning 202: number of arguments does not match definition
Compressed\newtest\gamemodes\fgame.pwn(2676) : warning 202: number of arguments does not match definition
Compressed\newtest\gamemodes\fgame.pwn(2677) : warning 202: number of arguments does not match definition
Compressed\newtest\gamemodes\fgame.pwn(2678) : warning 202: number of arguments does not match definition
Compressed\newtest\gamemodes\fgame.pwn(2679) : warning 202: number of arguments does not match definition
thats because the function "AddPlayerClass " in this case, uses 11 arguments but you have 10 arguments so change it.
You have:
pawn Код:
AddPlayerClass(233,2098.9939, 1158.6058, 24.5625,0,0,0,0,0,0);
to this:
pawn Код:
AddPlayerClass(0, Float:x ,Float:y,Float:z, Float:Angle, 0, 0, 0, 0, 0, 0);
Reply
#4

YOU FORGET TO ADD FLOAT:ANGEL


REPLACE ANGEL
PHP код:
public OnGameModeInit()
{
AddPlayerClass(3,2098.99391158.605824.5625,Angel,0,0,0,0,0,0);
AddPlayerClass(4,2098.99391158.605824.5625,Angel,0,0,0,0,0,0);
AddPlayerClass(5,2098.99391158.605824.5625,Angel,0,0,0,0,0,0);
AddPlayerClass(6,2098.99391158.605824.5625,Angel,0,0,0,0,0,0);
AddPlayerClass(7,2098.99391158.605824.5625,Angel,0,0,0,0,0,0);
AddPlayerClass(8,2098.99391158.605824.5625,Angel,0,0,0,0,0,0);
AddPlayerClass(9,2098.99391158.605824.5625,Angel,0,0,0,0,0,0);
AddPlayerClass(10,2098.99391158.605824.5625,Angel,0,0,0,0,0,0);
AddPlayerClass(11,2098.99391158.605824.5625,Angel,0,0,0,0,0,0);
AddPlayerClass(12,2098.99391158.605824.5625,Angel,0,0,0,0,0,0);
AddPlayerClass(13,2098.99391158.605824.5625,Angel,0,0,0,0,0,0);
AddPlayerClass(14,2098.99391158.605824.5625,Angel,0,0,0,0,0,0);
AddPlayerClass(15,2098.99391158.605824.5625,Angel,0,0,0,0,0,0);
AddPlayerClass(16,2098.99391158.605824.5625,Angel,0,0,0,0,0,0);
AddPlayerClass(17,2098.99391158.605824.5625,Angel,0,0,0,0,0,0);
AddPlayerClass(18,2098.99391158.605824.5625,Angel,0,0,0,0,0,0);
AddPlayerClass(19,2098.99391158.605824.5625,Angel,0,0,0,0,0,0);
AddPlayerClass(20,2098.99391158.605824.5625,Angel,0,0,0,0,0,0);
AddPlayerClass(21,2098.99391158.605824.5625,Angel,0,0,0,0,0,0);
AddPlayerClass(22,2098.99391158.605824.5625,Angel,0,0,0,0,0,0);
AddPlayerClass(23,2098.99391158.605824.5625,Angel,0,0,0,0,0,0);
AddPlayerClass(189,2098.99391158.605824.5625,Angel,0,0,0,0,0,0);
AddPlayerClass(190,2098.99391158.605824.5625,Angel,0,0,0,0,0,0);
AddPlayerClass(191,2098.99391158.605824.5625,Angel,0,0,0,0,0,0);
AddPlayerClass(192,2098.99391158.605824.5625,Angel,0,0,0,0,0,0);
AddPlayerClass(193,2098.99391158.605824.5625,Angel,0,0,0,0,0,0);
AddPlayerClass(194,2098.99391158.605824.5625,Angel,0,0,0,0,0,0);
AddPlayerClass(195,2098.99391158.605824.5625,Angel,0,0,0,0,0,0);
AddPlayerClass(196,2098.99391158.605824.5625,Angel,0,0,0,0,0,0);
AddPlayerClass(197,2098.99391158.605824.5625,Angel,0,0,0,0,0,0);
AddPlayerClass(198,2098.99391158.605824.5625,Angel,0,0,0,0,0,0);
AddPlayerClass(199,2098.99391158.605824.5625,Angel,0,0,0,0,0,0);
AddPlayerClass(200,2098.99391158.605824.5625,Angel,0,0,0,0,0,0);
AddPlayerClass(201,2098.99391158.605824.5625,Angel,0,0,0,0,0,0);
AddPlayerClass(202,2098.99391158.605824.5625,Angel,0,0,0,0,0,0);
AddPlayerClass(203,2098.99391158.605824.5625,Angel,0,0,0,0,0,0);
AddPlayerClass(204,2098.99391158.605824.5625,Angel,0,0,0,0,0,0);
AddPlayerClass(205,2098.99391158.605824.5625,Angel,0,0,0,0,0,0);
AddPlayerClass(232,2098.99391158.605824.5625,Angel,0,0,0,0,0,0);
AddPlayerClass(233,2098.99391158.605824.5625,Angel,0,0,0,0,0,0);
AddPlayerClass(234,2098.99391158.605824.5625,Angel,0,0,0,0,0,0); 
Reply
#5

Quote:
Originally Posted by Slawiii
Посмотреть сообщение
YOU FORGET TO ADD FLOAT:ANGEL


REPLACE ANGEL
PHP код:
public OnGameModeInit()
{
AddPlayerClass(3,2098.99391158.605824.5625,Angel,0,0,0,0,0,0);
AddPlayerClass(4,2098.99391158.605824.5625,Angel,0,0,0,0,0,0);
AddPlayerClass(5,2098.99391158.605824.5625,Angel,0,0,0,0,0,0);
AddPlayerClass(6,2098.99391158.605824.5625,Angel,0,0,0,0,0,0);
AddPlayerClass(7,2098.99391158.605824.5625,Angel,0,0,0,0,0,0);
AddPlayerClass(8,2098.99391158.605824.5625,Angel,0,0,0,0,0,0);
AddPlayerClass(9,2098.99391158.605824.5625,Angel,0,0,0,0,0,0);
AddPlayerClass(10,2098.99391158.605824.5625,Angel,0,0,0,0,0,0);
AddPlayerClass(11,2098.99391158.605824.5625,Angel,0,0,0,0,0,0);
AddPlayerClass(12,2098.99391158.605824.5625,Angel,0,0,0,0,0,0);
AddPlayerClass(13,2098.99391158.605824.5625,Angel,0,0,0,0,0,0);
AddPlayerClass(14,2098.99391158.605824.5625,Angel,0,0,0,0,0,0);
AddPlayerClass(15,2098.99391158.605824.5625,Angel,0,0,0,0,0,0);
AddPlayerClass(16,2098.99391158.605824.5625,Angel,0,0,0,0,0,0);
AddPlayerClass(17,2098.99391158.605824.5625,Angel,0,0,0,0,0,0);
AddPlayerClass(18,2098.99391158.605824.5625,Angel,0,0,0,0,0,0);
AddPlayerClass(19,2098.99391158.605824.5625,Angel,0,0,0,0,0,0);
AddPlayerClass(20,2098.99391158.605824.5625,Angel,0,0,0,0,0,0);
AddPlayerClass(21,2098.99391158.605824.5625,Angel,0,0,0,0,0,0);
AddPlayerClass(22,2098.99391158.605824.5625,Angel,0,0,0,0,0,0);
AddPlayerClass(23,2098.99391158.605824.5625,Angel,0,0,0,0,0,0);
AddPlayerClass(189,2098.99391158.605824.5625,Angel,0,0,0,0,0,0);
AddPlayerClass(190,2098.99391158.605824.5625,Angel,0,0,0,0,0,0);
AddPlayerClass(191,2098.99391158.605824.5625,Angel,0,0,0,0,0,0);
AddPlayerClass(192,2098.99391158.605824.5625,Angel,0,0,0,0,0,0);
AddPlayerClass(193,2098.99391158.605824.5625,Angel,0,0,0,0,0,0);
AddPlayerClass(194,2098.99391158.605824.5625,Angel,0,0,0,0,0,0);
AddPlayerClass(195,2098.99391158.605824.5625,Angel,0,0,0,0,0,0);
AddPlayerClass(196,2098.99391158.605824.5625,Angel,0,0,0,0,0,0);
AddPlayerClass(197,2098.99391158.605824.5625,Angel,0,0,0,0,0,0);
AddPlayerClass(198,2098.99391158.605824.5625,Angel,0,0,0,0,0,0);
AddPlayerClass(199,2098.99391158.605824.5625,Angel,0,0,0,0,0,0);
AddPlayerClass(200,2098.99391158.605824.5625,Angel,0,0,0,0,0,0);
AddPlayerClass(201,2098.99391158.605824.5625,Angel,0,0,0,0,0,0);
AddPlayerClass(202,2098.99391158.605824.5625,Angel,0,0,0,0,0,0);
AddPlayerClass(203,2098.99391158.605824.5625,Angel,0,0,0,0,0,0);
AddPlayerClass(204,2098.99391158.605824.5625,Angel,0,0,0,0,0,0);
AddPlayerClass(205,2098.99391158.605824.5625,Angel,0,0,0,0,0,0);
AddPlayerClass(232,2098.99391158.605824.5625,Angel,0,0,0,0,0,0);
AddPlayerClass(233,2098.99391158.605824.5625,Angel,0,0,0,0,0,0);
AddPlayerClass(234,2098.99391158.605824.5625,Angel,0,0,0,0,0,0); 
Angel?
Reply
#6

A user already gave the correct solution, do you really have to post another one (Which is exactly the same)
Reply
#7

thank you guys apperciate it , but which one do i use ? :C
Reply
#8

Try to understand your mistake.
Quote:
Originally Posted by 1fret
Посмотреть сообщение
thats because the function "AddPlayerClass " in this case, uses 11 arguments but you have 10 arguments so change it.
You have:
pawn Код:
AddPlayerClass(233,2098.9939, 1158.6058, 24.5625,0,0,0,0,0,0);
to this:
pawn Код:
AddPlayerClass(0, Float:x ,Float:y,Float:z, [B]Float:Angle[/B], 0, 0, 0, 0, 0, 0);
Like he said, you have forget the ANGLE.
PHP код:
// Correct :
AddPlayerClass(0Float:,Float:y,Float:zFloat:Angle000000);
// False :
AddPlayerClass(0Float:,Float:y,Float:z000000); 
Also check this :
Quote:
Originally Posted by Danzou
Посмотреть сообщение
Reply
#9

Quote:
Originally Posted by Sreyas
Посмотреть сообщение
Angel?
float:Angel
Reply
#10

Quote:
Originally Posted by Slawiii
Посмотреть сообщение
float:Angel
Angle not Angel
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)