error 010
#1

my codo
PHP код:
if(IsInDM == 1)
    {
       
SetPlayerPos(playerid1127.9473, -1446.757415.7968);
    }
     return 
1;

when i compile it.come out

Quote:

H:\gta server cc bukit\gamemodes\GL.pwn(475) : error 010: invalid function or declaration
H:\gta server cc bukit\gamemodes\GL.pwn(479) : error 010: invalid function or declaration
H:\gta server cc bukit\gamemodes\GL.pwn(3837) : warning 203: symbol is never used: "IsInDM"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


2 Errors.

Reply
#2

Код:
SetPlayerPos(playerid, 1127.9473, -1446.7574, 3.0);
Reply
#3

Try @Man43 Code if still not work Try this....


Код:
SetPlayerPos(1127.9473, -1446.7574, 15.7968);
Reply
#4

Quote:
Originally Posted by Man43
Посмотреть сообщение
Код:
SetPlayerPos(playerid, 1127.9473, -1446.7574, 3.0);
Quote:
Originally Posted by RedRex
Посмотреть сообщение
Try @Man43 Code if still not work Try this....


Код:
SetPlayerPos(1127.9473, -1446.7574, 15.7968);
https://sampwiki.blast.hk/wiki/SetPlayerPos

-------

As for OP: please show us what are you using IsInDM on

EDIT: I can guess from your previous posts, please, show here the command people use to teleport to the DM and the one people use to exit the DM, also your OnPlayerSpawn. I'll make and explain a quick code for you.
Reply
#5

MY public OnPlayerSpawn
PHP код:
public OnPlayerSpawn(playerid)
{
    if(
IsPlayerNPC(playerid)) return 1;
    
    
PlayerTextDrawHide(playerid,Textdraw0);
    
PlayerTextDrawHide(playerid,Textdraw1);
    
PlayerTextDrawHide(playerid,Textdraw2);
    
PlayerTextDrawHide(playerid,Textdraw3);
    
    new 
randSpawn 0;
    
    
SetPlayerInterior(playerid,0);
    
TogglePlayerClock(playerid,0);
     
ResetPlayerMoney(playerid);
    
GivePlayerMoney(playerid30000);
    if(
CITY_LOS_SANTOS == gPlayerCitySelection[playerid]) {
         
randSpawn random(sizeof(gRandomSpawns_LosSantos));
         
SetPlayerPos(playerid,
         
gRandomSpawns_LosSantos[randSpawn][0],
         
gRandomSpawns_LosSantos[randSpawn][1],
         
gRandomSpawns_LosSantos[randSpawn][2]);
        
SetPlayerFacingAngle(playerid,gRandomSpawns_LosSantos[randSpawn][3]);
    }
    else if(
CITY_SAN_FIERRO == gPlayerCitySelection[playerid]) {
         
randSpawn random(sizeof(gRandomSpawns_SanFierro));
         
SetPlayerPos(playerid,
         
gRandomSpawns_SanFierro[randSpawn][0],
         
gRandomSpawns_SanFierro[randSpawn][1],
         
gRandomSpawns_SanFierro[randSpawn][2]);
        
SetPlayerFacingAngle(playerid,gRandomSpawns_SanFierro[randSpawn][3]);
    }
    else if(
CITY_LAS_VENTURAS == gPlayerCitySelection[playerid]) {
         
randSpawn random(sizeof(gRandomSpawns_LasVenturas));
         
SetPlayerPos(playerid,
         
gRandomSpawns_LasVenturas[randSpawn][0],
         
gRandomSpawns_LasVenturas[randSpawn][1],
         
gRandomSpawns_LasVenturas[randSpawn][2]);
        
SetPlayerFacingAngle(playerid,gRandomSpawns_LasVenturas[randSpawn][3]);
    }
    
//SetPlayerColor(playerid,COLOR_NORMAL_PLAYER);
    
    
SetPlayerSkillLevel(playerid,WEAPONSKILL_PISTOL,200);
    
SetPlayerSkillLevel(playerid,WEAPONSKILL_PISTOL_SILENCED,200);
    
SetPlayerSkillLevel(playerid,WEAPONSKILL_DESERT_EAGLE,200);
    
SetPlayerSkillLevel(playerid,WEAPONSKILL_SHOTGUN,200);
    
SetPlayerSkillLevel(playerid,WEAPONSKILL_SAWNOFF_SHOTGUN,200);
    
SetPlayerSkillLevel(playerid,WEAPONSKILL_SPAS12_SHOTGUN,200);
    
SetPlayerSkillLevel(playerid,WEAPONSKILL_MICRO_UZI,200);
    
SetPlayerSkillLevel(playerid,WEAPONSKILL_MP5,200);
    
SetPlayerSkillLevel(playerid,WEAPONSKILL_AK47,200);
    
SetPlayerSkillLevel(playerid,WEAPONSKILL_M4,200);
    
SetPlayerSkillLevel(playerid,WEAPONSKILL_SNIPERRIFLE,200);
    
    
GivePlayerWeapon(playerid,WEAPON_COLT45,100);
    
//GivePlayerWeapon(playerid,WEAPON_MP5,100);
    
TogglePlayerClock(playerid0);
    if(
god_mode[playerid]==1)
    {   
SetPlayerHealth(playerid,10000000000.0);    }
    else 
SetPlayerHealth(playerid,100.0);
    return 
1;

MY public OnPlayerDeath

PHP код:
public OnPlayerDeath(playeridkilleridreason)
{
        
PlayerTextDrawHide(playerid,Textdraw0);
    
PlayerTextDrawHide(playerid,Textdraw1);
    
PlayerTextDrawHide(playerid,Textdraw2);
    
PlayerTextDrawHide(playerid,Textdraw3);
    new 
playercash;
    
    
// if they ever return to class selection make them city
    // select again first
    
gPlayerHasCitySelected[playerid] = 0;
    
    if(
killerid == INVALID_PLAYER_ID) {
        
ResetPlayerMoney(playerid);
    } else {
        
playercash GetPlayerMoney(playerid);
        if(
playercash 0)  {
            
GivePlayerMoney(killeridplayercash);
            
ResetPlayerMoney(playerid);
        }
    }
       return 
1;
}
GetNumberOfPages()
{
    if((
gTotalItems >= SELECTION_ITEMS) && (gTotalItems SELECTION_ITEMS) == 0)
    {
        return (
gTotalItems SELECTION_ITEMS);
    }
    else return (
gTotalItems SELECTION_ITEMS) + 1;

went i put the add new code it become problem

and my gm has also menu to go dm map
Reply
#6

Please post the respective OnDialogResponse that triggers your DM function
Reply
#7

my gm
there is no ondialogresponse

p.s sorry my eng
Reply
#8

can you show how to make death match minigame pls
Reply
#9

how?
Reply
#10

i compile it
give me error

Quote:

H:\gta server cc bukit\gamemodes\GL.pwn(34 : error 010: invalid function or declaration
H:\gta server cc bukit\gamemodes\GL.pwn(349) : error 010: invalid function or declaration
H:\gta server cc bukit\gamemodes\GL.pwn(360) : error 010: invalid function or declaration
H:\gta server cc bukit\gamemodes\GL.pwn(361) : error 010: invalid function or declaration
H:\gta server cc bukit\gamemodes\GL.pwn(42 : error 010: invalid function or declaration
H:\gta server cc bukit\gamemodes\GL.pwn(440) : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


6 Errors.

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)