Help with warning
#1

This is the warning
warning 202: number of arguments does not match definition

This is the line of warning
PHP код:
if(gPlayerLogTries[playerid] == 4) { Kick(playerid,"*You are kick "); } 
Reply
#2

thats cause Kick function only take 1 argument
like

pawn Код:
Kick(playerid);
Reply
#3

It must be:
pawn Код:
if(gPlayerLogTries[playerid] == 4) { Kick(playerid); }
Reply
#4

If you want a message then you should do something like this:

PHP код:
if(gPlayerLogTries[playerid] == 4) { SendClientMessage(playeridCOLOR_RED"You have been kicked!");Kick(playerid); } 
Reply
#5

^

Failed.

pawn Код:
if ( gPlayerLogTries[playerid] == 4 )
{
Kick ( playerid ) ;
SendClientMessage ( playerid , -1 , "You have been Kicked." ) ;
}
Reply
#6

Quote:
Originally Posted by Ronaldo_raul™
Посмотреть сообщение
^

Failed.

pawn Код:
if ( gPlayerLogTries[playerid] == 4 )
{
Kick ( playerid ) ;
SendClientMessage ( playerid , -1 , "You have been Kicked." ) ;
}
Failed again.

Once a player is kicked, he can't recieve messages. The message goes before the kick.
Reply
#7

Quote:
Originally Posted by Ronaldo_raul™
Посмотреть сообщение
^

Failed.

pawn Код:
if ( gPlayerLogTries[playerid] == 4 )
{
Kick ( playerid ) ;
SendClientMessage ( playerid , -1 , "You have been Kicked." ) ;
}
accually you failed, first you wrote the same code execpt 1 minor thing, you kick the player first and then trying to send a message to someone who isnt on the server anymore....
Reply
#8

LoL! i FAILED Hard


Ok Just fix that :P
Reply
#9

Quote:
Originally Posted by Ronaldo_raul™
Посмотреть сообщение
LoL! i FAILED Hard


Ok Just fix that :P
you better be sorry! :<

I think your "fail" was reffering to my "enter" :< when i wrote stuff and i wanted to press enter it just sendt my undone code
Reply
#10

Quote:
Originally Posted by Blunt P
Посмотреть сообщение
you better be sorry! :<

I think your "fail" was reffering to my "enter" :< when i wrote stuff and i wanted to press enter it just sendt my undone code
LoL! your code won't even kick the player and you missed a bracket too --_--
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)