- 0
Comanda /goto ZCMD
-
Similar Content
-
- 4 replies
- 168 views
-
- 1 reply
- 133 views
-
Comanda /spec
By VAurel,
- 4 answers
- 301 views
-
- 4 answers
- 650 views
-
- 3 replies
- 291 views
-
-
Recently Browsing 0 members
- No registered users viewing this page.
Question
vbicompany
Am si eu o problema : [pawn]CMD:goto(playerid, params[])
{
if(IsPlayerAdmin(playerid))
{
new ID;
new Str[64];
if(sscanf(params, "u", ID)) SendClientMessage(playerid, COLOR_GREY, "USAGE: /goto [playerid]");
else if(IsPlayerConnected(ID) == 0) SendClientMessage(playerid, COLOR_GREY, "Player is not connected!");
else
{
new Float:x, Float:y, Float:z;
GetPlayerPos(ID, x, y, z);
SetPlayerPos(playerid, x+1, y+1, z);
}
}
else
{
if(PlayerInfo[playerid][pAdmin] < 1)
SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use that command!");
}
return 1;
}[/pawn]
Asa cand nu aveam acel [pawn]if(PlayerInfo[playerid][pAdmin] < 1)[/pawn] , imi zicea ca nu am permisiune la comanda , lam adaugat la compiler a fost totul Ok , dar cand intru in server si dau /goto nu se intampla nimic deci pur si simplu dau /goto si nici macar nu apare nimika , nici num scrie ca aceasta comanda nu exista .
Cred ca intelegeti care imi este problema.
PS : Mentionez ca la compilare imi da 3 Warnings [pawn]C:\Documents and Settings\RYder\Desktop\eGaming\Server\gamemodes\GMarea.pwn(30553) : warning 204: symbol is assigned a value that is never used: "Str"
C:\Documents and Settings\RYder\Desktop\eGaming\Server\gamemodes\GMarea.pwn(30553 -- 30564) : warning 217: loose indentation
C:\Documents and Settings\RYder\Desktop\eGaming\Server\gamemodes\GMarea.pwn(30569) : warning 217: loose indentation[/pawn]
NU STIE NIMENI ?
Invat ca sa Invat.
Link to comment
Share on other sites
27 answers to this question
Recommended Posts