[Ajuda] MapIcon
#1

O que estб errado ?

PHP код:
CreateMapIcon()
{
    for(new 
0<= sizeof(iMapIcon) - 1i++)
        
SetPlayerMapIcon(playeridiMapIcon[i][IconID], iMapIcon[i][X], iMapIcon[i][Y], iMapIcon[i][Z], iMapIcon[i][modelo], 0MAPICON_LOCAL);//Linha do Erro:

Erro:
Код:
undefined symbol: "playerid"
Codigo Completo:
PHP код:
enum MapIcon
{
    
IconID,
    
Float:X,
    
Float:Y,
    
Float:Z,
    
modelo
}
new const 
iMapIcon[][MapIcon] =
{
    {
0, -2651.9697639.935014.453122},
    {
1, -2208.6121, -2286.589830.625022},
    {
21172.3951, -1322.426015.401022},
    {
32032.1482, -1410.467217.131522},
    {
41242.1888326.626319.755522},
    {
5, -320.5170,1049.1122,20.340322},
    {
61607.0284,1816.6486,10.820322},
    {
7, -1514.7341,2519.8289,56.017422}
};
// --- > НCONES Pawn
CreateMapIcon()
{
    for(new 
0<= sizeof(iMapIcon) - 1i++)
        
SetPlayerMapIcon(playeridiMapIcon[i][IconID], iMapIcon[i][X], iMapIcon[i][Y], iMapIcon[i][Z], iMapIcon[i][modelo], 0MAPICON_LOCAL);

Reply
#2

PHP код:
CreateMapIcon(playerid

    for(new 
0<= sizeof(iMapIcon) - 1i++) 
        
SetPlayerMapIcon(playeridiMapIcon[i][IconID], iMapIcon[i][X], iMapIcon[i][Y], iMapIcon[i][Z], iMapIcon[i][modelo], 0MAPICON_LOCAL); 

Coloque em OnPlayerConnect
Reply
#3

Obrigado!

+Rep.0
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)