i found 2 errors :) Please Help
#1

Hello Guys, i just need help in that errors idk what i do with that
Quote:

CMD:kodann(playerid,params[]) {
if(PlayerInfo[playerid][KOD] >= 4 || IsPlayerAdmin(playerid))
{
if(isnull(params)) return SendClientMessage(playerid,red,"USAGE: /announce <text>");
CMDMessageToKOD(playerid,"ANNOUNCE");
foreach(Player,i)
{
if(PlayerInfo [KOD] >= 1)
{
GameTextForPlayer(params,4000,3);
}
}
}
else
{
SendClientMessage(playerid,red,"ERROR: You need to be a level 4 KOD member to use this command");
}
return 1;
}

Reply
#2

This are the correct params for GameTextForPlayer

Код HTML:
GameTextForPlayer(playerid, "string", time, style);
and use PlayerInfo[playerid]
Reply
#3

Use this, changes are in red.
Quote:
if(PlayerInfo[playerid][KOD] >= 1)
{
GameTextForAll(params,4000,3);
}

Reply
#4

Quote:

GameTextForAll(params,4000,3);
}

but this will send to all players and this :kodann send to kod members just
Reply
#5

and when i added it
Quote:

GameTextForPlayer(playerid, "string", time, style);

i found this
Quote:

(38419) : error 017: undefined symbol "time"

Reply
#6

Oh didnt have a look on above code .-.
In that case use this,
Quote:
if(PlayerInfo[i][KOD] >= 1)
{
GameTextForPlayer(i, params,4000,3);
}

Reply
#7

Lol,no they just told u how to do it
PHP код:
GameTextForPlayer(playerid"string"50003);//style 3 with 5secs 
https://sampwiki.blast.hk/wiki/GameTextForPlayer
Reply
#8

Quote:
Originally Posted by WhiteGhost
Посмотреть сообщение
Lol,no they just told u how to do it
PHP код:
GameTextForPlayer(playerid"string"50003);//style 3 with 5secs 
https://sampwiki.blast.hk/wiki/GameTextForPlayer
No, you're just showing it with this code to one single player, he want to show the GameText for all KOR Members.

Correct:

Код HTML:
GameTextForPlayer(i,params, 5000, 3);//style 3 with 5secs
Reply
#9

Thank you All For Help ( JustMe.77 - hiteGhost - [cS]Owain)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)