No IDEA
#1

PHP код:
Float:Px,Float:Py,Floaz:Pz
PHP код:
C:\Users\Dino Covic\Desktop\Wilder Gaming Roleplay\gamemodes\WGRP.pwn(2185) : warning 213tag mismatch
C
:\Users\Dino Covic\Desktop\Wilder Gaming Roleplay\gamemodes\WGRP.pwn(2186) : warning 213tag mismatch
C
:\Users\Dino Covic\Desktop\Wilder Gaming Roleplay\gamemodes\WGRP.pwn(2197) : warning 213tag mismatch
C
:\Users\Dino Covic\Desktop\Wilder Gaming Roleplay\gamemodes\WGRP.pwn(2198) : warning 213tag mismatch
C
:\Users\Dino Covic\Desktop\Wilder Gaming Roleplay\gamemodes\WGRP.pwn(2209) : warning 213tag mismatch
C
:\Users\Dino Covic\Desktop\Wilder Gaming Roleplay\gamemodes\WGRP.pwn(2210) : warning 213tag mismatch
C
:\Users\Dino Covic\Desktop\Wilder Gaming Roleplay\gamemodes\WGRP.pwn(2221) : warning 213tag mismatch
C
:\Users\Dino Covic\Desktop\Wilder Gaming Roleplay\gamemodes\WGRP.pwn(2222) : warning 213tag mismatch
Pawn compiler 3.2.3664              Copyright 
(c1997-2006ITB CompuPhase
8 Warnings

2185 & 2016:
PHP код:
            GetPlayerPos(ID,Px,Py,Pz);
            
SetPlayerPos(ID,Px,Py,Pz+3); 
2196 & 2197:

PHP код:
            GetPlayerPos(ID,Px,Py,Pz);
            
SetPlayerPos(ID,Px,Py,Pz+3); 
and so on... The same code...
Reply
#2

Give Code from 2185 to 2222

so i can have a look.
Reply
#3

my friend had same kind of problem changing the Px,Py,Pz to x,y,z fixed the problem
Px -> x
Py -> y
Pz -> z
Reply
#4

PHP код:
        else if(PlayerInfo[playerid][pAdministrator] == && PlayerInfo[ID][pAdministrator] <= 5)
        {
            
GetPlayerPos(ID,Px,Py,Pz);
            
SetPlayerPos(ID,Px,Py,Pz+3);
            
format(poruka,256,"{0080FF}WG:{FFFFFF} Slapovali ste %s %s. Razlog: %s.",GetPlayerSupporterRank(ID),GetName(ID),razlog);
            
SendClientMessage(playerid,-1,poruka);
            
format(poruka,256,"{0080FF}WG:{FFFFFF} Slapovani ste od strane %s %sa. Razlog: %s",GetPlayerAdminRank(playerid),GetName(playerid),razlog);
            
SendClientMessage(ID,-1,poruka);
            
format(poruka,256,"{FF0000}[A-INFO]: %s %s je slapovo %s %s. Razlog: %s.",GetPlayerAdminRank(playerid),GetName(playerid),GetPlayerSupporterRank(ID),GetName(ID),razlog);
            
SendAdminMessage(-1,poruka);
            return 
1;
        }
        else if(
PlayerInfo[ID][pAdministrator] != && PlayerInfo[ID][pAdministrator] < PlayerInfo[playerid][pAdministrator])
        {
            
GetPlayerPos(ID,Px,Py,Pz);
            
SetPlayerPos(ID,Px,Py,Pz+3);
            
            
format(poruka,256,"{0080FF}WG:{FFFFFF} Slapovali ste %s %s. Razlog: %s.",GetPlayerAdminRank(ID),GetName(ID),razlog);
            
SendClientMessage(playerid,-1,poruka);
            
format(poruka,256,"{0080FF}WG:{FFFFFF} Slapovani ste od strane %s %sa. Razlog: %s",GetPlayerAdminRank(playerid),GetName(playerid),razlog);
            
SendClientMessage(ID,-1,poruka);
            
format(poruka,256,"{FF0000}[A-INFO]: %s %s je slapovo %s %s. Razlog: %s.",GetPlayerAdminRank(playerid),GetName(playerid),GetPlayerAdminRank(ID),GetName(ID),razlog);
            
SendAdminMessage(-1,poruka);
            return 
1;
        }
        else if(
PlayerInfo[playerid][pAdministrator] > && PlayerInfo[ID][pAdministrator] == && PlayerInfo[ID][pSupporter] > 0)
        {
            
GetPlayerPos(ID,Px,Py,Pz);
            
SetPlayerPos(ID,Px,Py,Pz+3);
            
format(poruka,256,"{0080FF}WG:{FFFFFF} Slapovali ste %s %s. Razlog: %s.",GetPlayerSupporterRank(ID),GetName(ID),razlog);
            
SendClientMessage(playerid,-1,poruka);
            
format(poruka,256,"{0080FF}WG:{FFFFFF} Slapovani ste od strane %s %sa. Razlog: %s",GetPlayerAdminRank(playerid),GetName(playerid),razlog);
            
SendClientMessage(ID,-1,poruka);
            
format(poruka,256,"{FF0000}[A-INFO]: %s %s je slapovo %s %s. Razlog: %s.",GetPlayerAdminRank(playerid),GetName(playerid),GetPlayerSupporterRank(ID),GetName(ID),razlog);
            
SendAdminMessage(-1,poruka);
            return 
1;
        }
        else if(
PlayerInfo[ID][pAdministrator] == && PlayerInfo[ID][pSupporter] == 0
Reply
#5

Quote:
Originally Posted by xTURBOx
Посмотреть сообщение
my friend had same kind of problem changing the Px,Py,Pz to x,y,z fixed the problem
Px -> x
Py -> y
Pz -> z
Actually i changed x,y,z to Px,Py,Py i thought that was the problem
Reply
#6

Код:
Float:Px,Float:Py,Floaz:Pz;
That's your problem, it should be:
Код:
Float:Pz
Reply
#7

Try converting them from px to x, py to y, pz to z

PHP код:
new Float:xFloat:yFloat:z;
GetPlayerPos(playeridxyz);
SetPlayerPos(playeridxy+3); 
Reply
#8

Thank you. Didn't see that

EDIT: thank you Arshman and XTurboX for support.
Reply
#9

Actually my code was also correct. anyways its good to see you fixed your problem.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)