[Help Me Ids]
#1

Hello Guys,Please Help Me I have Rated Gamemode And I Have Problem With ids How i Can to Fix It Please Help
Reply
#2

Ids...to what?
Reply
#3

Quote:
Originally Posted by Mattakil
Посмотреть сообщение
Ids...to what?
Example i have 3 Players In Server and name of Players "Loleex_Babutsa" Id 0 Other PLayer name "Fisnik_Babutsa" Id 1, And I say /gotoid 0 {To Loleex_Babutsa} He Dont Work he Go To Fisnik_Babutsa This is Problem
Reply
#4

pawn Код:
CMD:gotoid(playerid, params[])
{
    new id;
    if(sscanf(params, "i", id)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /gotoid [id]");
    if(!IsPlayerConnected(id)) return SendClientMessage(playerid, COLOR_WHITE, "Player not connected!");//Here
    new Float:idx,Float:idy,Float:idz;
    GetPlayerPos(id, idx, idy, idz);
    SetPlayerPos(playerid, idx, idy+4, idz);
    SetPlayerVirtualWorld(playerid, 0);
    return 1;
}
Reply
#5

Do what scrillex told you
If it wont work just update sscanf I had the same problem once
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)