I dont understand this!!!!
#1

Under OnPlayerDeath:

pawn Code:
if(gTeam[playerid] == gTeam[killerid])
        {
                new KillerName[MAX_PLAYER_NAME];
                new string[128];
            GetPlayerName(killerid, KillerName, sizeof(KillerName));
            format(string,sizeof(string),"Sorry for Team-Killing you!~n~From %s",KillerName);
            GameTextForPlayer(playerid,string);//Line 370
           
              GameTextForPlayer(killerid,"Do Not Team-Kill!",4500,0);
             
            new Float:x,Float:y,Float:z;
              GetPlayerPos(killerid,x,y,z);
              SetPlayerPos(killerid,x,y,z+15);
              SetPlayerHealth(killerid,0);
                }
            }
    }
Errors:

Code:
C:\DOCUME~1\mani\Desktop\Server\GAMEMO~1\Armed.pwn(370) : warning 202: number of arguments does not match definition
C:\DOCUME~1\mani\Desktop\Server\GAMEMO~1\Armed.pwn(370) : warning 202: number of arguments does not match definition
Please Help!!!!!
Reply
#2

https://sampwiki.blast.hk/wiki/GameTextForPlayer

Read the Wiki. You have only entered two parameters and left out the time and style.
Reply
#3

Quote:
Originally Posted by [B2K
Hustler ]
https://sampwiki.blast.hk/wiki/GameTextForPlayer

Read the Wiki. You have only entered two parameters and left out the time and style.
OOh! Thnx dude! I made that mistake by accident cuz i thought i was using sendclientmessage, lol

but thnx anyway!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)