public OnPlayerEnterDynamicCP(playerid, checkpointid);
{
if(checkpointid = LSPDGarage)
{
SetPlayerInt(playerid, 3);
SetPlayerPos(playerid, 1480.9470,-1767.6609,18.7958);
}
return 1;
}
if(checkpointid...)
if(checkpointid == LSPDGarage)
|
Originally Posted by llama
pawn Код:
|
public OnPlayerEnterDynamicCP(playerid, checkpointid);
{
if(checkpointid == LSPDGarage)
{
SetPlayerInt(playerid, 3);
SetPlayerPos(playerid, 1480.9470,-1767.6609,18.7958);
}
return 1;
}
C:\CnR SA-MP Server\gamemodes\CnR.pwn(294) : error 055: start of function body without function header C:\CnR SA-MP Server\gamemodes\CnR.pwn(295) : error 010: invalid function or declaration C:\CnR SA-MP Server\gamemodes\CnR.pwn(298) : error 021: symbol already defined: "SetPlayerPos" C:\CnR SA-MP Server\gamemodes\CnR.pwn(300) : error 010: invalid function or declaration C:\CnR SA-MP Server\gamemodes\CnR.pwn(54) : warning 204: symbol is assigned a value that is never used: "LSPDGarage" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.
LSPDGarage = CreateDynamicCP(1525.3311,-1677.8967,5.8906,2,-1,-1,-1,100);
new LSPDGarage;
#include <streamer>
LSPDGarage = CreateDynamicCP(1525.3311,-1677.8967,5.8906,2,-1,-1,-1,100);
new LSPDGarage;
#include <streamer>
#include <streamer>
new LSPDGarage;
LSPDGarage = CreateDynamicCP(1525.3311,-1677.8967,5.8906,2,-1,-1,-1,100);
#include <streamer>
new LSPDGarage = CreateDynamicCP(1525.3311,-1677.8967,5.8906,2,-1,-1,-1,100);
public OnPlayerEnterDynamicCP(playerid, checkpointid);
{
if(checkpointid = LSPDGarage)
{
SetPlayerInt(playerid, 3);
SetPlayerPos(playerid, 1480.9470,-1767.6609,18.7958);
}
return 1;
}
public OnPlayerEnterDynamicCP(playerid, checkpointid) //there should be no ; at the end, this is a callback
{
if(checkpointid = LSPDGarage)
{
SetPlayerInt(playerid, 3);
SetPlayerPos(playerid, 1480.9470,-1767.6609,18.7958);
}
return 1;
}
public OnPlayerEnterDynamicCP(playerid, checkpointid) //there should be no ; at the end, this is a callback
{
if(checkpointid == LSPDGarage) // Not =
{
SetPlayerInt(playerid, 3);
SetPlayerPos(playerid, 1480.9470,-1767.6609,18.7958);
}
return 1;
}
AttachElementToPlayer(playerid, type, ID); AttachElementToVehicle(vehicleid, type, ID);
Streamer_SetIntData(STREAMER_TYPE_MAP_ICON, IconID, E_STREAMER_COLOR, 0x1F961CFF);
The color doesn't change, but setting position works.
|
Originally Posted by ziomal432
Idea:
Код:
AttachElementToPlayer(playerid, type, ID); AttachElementToVehicle(vehicleid, type, ID); Код:
Streamer_SetIntData(STREAMER_TYPE_MAP_ICON, IconID, E_STREAMER_COLOR, 0x1F961CFF); The color doesn't change, but setting position works. |
|
color The color of the icon, this should only be used with the square icon (ID: 1). |
|
Originally Posted by ziomal432
I use Icon Streamer included in this plugin. I don't want to use SetPlayerMapIcon
|
|
Originally Posted by DavidC
Instead of
pawn Код:
pawn Код:
pawn Код:
pawn Код:
pawn Код:
|
It works good now.
Streamer_SetIntData(STREAMER_TYPE_MAP_ICON, IconID, E_STREAMER_WORLD_ID, 97531);
|
[16:12:56] *** Streamer_SetIntData: Invalid ID specified |

|
Originally Posted by kurta999
Incognito dont update this plugin ?
![]() Sorry, i'm bad english. |
|
Originally Posted by Mikep.
Is OnPlayerEnterCheckpoint used in this plugin? OnPlayerEnterDynamicCP is called like 1 second after I enter checkpoints, which isn't really ideal.
|
|
Originally Posted by Mikep.
Is OnPlayerEnterCheckpoint used in this plugin? OnPlayerEnterDynamicCP is called like 1 second after I enter checkpoints, which isn't really ideal.
|
|
Originally Posted by Sma_X
Quote:
|