- 0
Problema SSCNAF
-
Similar Content
-
Problema turf
By Soryn.,
- 3 answers
- 261 views
-
- 1 reply
- 179 views
-
Problema
By ImJustSlim,
- 3 answers
- 286 views
-
- 2 replies
- 157 views
-
- 1 answer
- 312 views
-
-
Recently Browsing 0 members
- No registered users viewing this page.
Question
ovidiubonteanu
Salut sunt nou in domeniul scripting-ului si ma intrebam daca ma poate ajuta cineva cu o problema.
Am incercat sa fac comanda /kick adica am incercat i-am dat copy paste:-?.Si nu inteleg de ce imi apare "Unidentified simbol SSCNAF"...Am citit in alte tutoriale si am pus in folderul plugins si in pawno==includes fisierele respective din acea arhiva downloadata.Adica ce am subliniat in imagini.
COMMAND:kick(playerid, params[])
{
new giveplayerid, reason[24], string[125], name[24], name2[24];
if(IsPlayerAdmin(playerid))
{
if(sscnaf(params, "is[24]", giveplayerid, reason)) return SendClientMessage(playerid, -1,"[ERROR]Usage: /kick [playerid] [reason]");
else if(giveplayerid == INVALID_PLAYER_ID) return SendClientMessage(playerid, -1,"[ERROR] Player Is Not Connected");
else
{
GetPlayerName(giveplayerid, name, sizeof(name));
GetPlayerName(playerid, name2, sizeof(name2));
format(string, sizeof(string), "<< ADM KICK >> Admin %s kicked %s(%d) | Reason: %s", name2, name, giveplayerid, reason);
SendClientMessageToAll(-1, string);
Kick(giveplayerid);
}
}
else return SendClientMessage(playerid, -1, "SERVER: Unknown Command");
return 1;
}
Multumesc anticipat!
http://postimg.org/image/r80zjrswp/
http://postimg.org/image/fk6xp83rt/
http://postimg.org/image/casiirfo9/
http://postimg.org/image/4yn2d7xg9/
Link to comment
Share on other sites
5 answers to this question
Recommended Posts