whats the proplem
#1

i want to know what is the proplem in this code it works good but i got these two warnings

pawn Код:
dcmd_getpos(playerid,params[])
{
    new ID;
    new string[128];
    new Float: x,y,z;
    if(sscanf(params,"u",ID))
    {
        SendClientMessage(playerid,COLOR_RED,"[ERROR] {FFFFFF}Usage: /getpos (Player Name/ID)");
        return 1;
    }
    if(!IsPlayerConnected(ID))
    {
        format(string,sizeof(string),"[ERROR] {FFFFFF}The player ID (%d) is not connected to the server.",ID);
        SendClientMessage(playerid,COLOR_RED,string);
        return 1;
    }
    if(IsSpawned[ID] !=1)
    {
        format(string,sizeof(string),"[ERROR] {FFFFFF}%s(%d) isn't spawned you cannot use this command on him",PlayerName(ID),ID);
        SendClientMessage(playerid,COLOR_RED,string);
        return 1;
    }
    GetPlayerPos(ID,x,y,z);
    format(string,sizeof(string),"[ADMIN] %s(%d)'s pos is: %.4f%,%.4f%,%.4f%",PlayerName(ID),ID,x,y,z);
    SendClientMessage(playerid,COLOR_LIGHTBLUE,string);
    return 1;
}
Код:
C:\Users\maher\Desktop\ahmad ghanayem\ълрйеъ\Iron-Players\gamemodes\Iron-Players.pwn(7470) : warning 213: tag mismatch
C:\Users\maher\Desktop\ahmad ghanayem\ълрйеъ\Iron-Players\gamemodes\Iron-Players.pwn(7470) : warning 213: tag mismatch
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Warnings.
i know what are you going to say these are just 2 warnings its not matter why do you want to solve it
because i get crazy when i see them
Reply
#2

i think it should be:

pawn Код:
new Float:x,Float:y,Float:z;
wish helped
Reply
#3

@qazwsx u missed ';'

pawn Код:
new Float:x, Float:y, Float:z;
Reply
#4

Quote:
Originally Posted by newbie scripter
Посмотреть сообщение
@qazwsx u missed ';'

pawn Код:
new Float:x, Float:y, Float:z;
ty edited
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)