I got a Problem with adding a Map into my GM
#1

Look :







Reply
#2

There only indentation warnings.

https://sampwiki.blast.hk/wiki/Errors_List
Reply
#3

Oh.. i added the map anyway, (DOWNLOADED) But how can i know where is it from, Plus i got this

Код:
if(strcmp(cmd, "/prison", true) == 0)
{        
            SetPlayerPos(playerid, 1779.3185,-1576.1315,1734.9430);        
            SendClientMessage(playerid, COLOR_WHITE, "You have been teleported to the prison!");        
            return 1;
i need to add it, where do i add this ?
Reply
#4

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(strcmp(cmd, "/prison", true) == 0)
    {        
        SetPlayerPos(playerid, 1779.3185,-1576.1315,1734.9430);        
        SendClientMessage(playerid, COLOR_WHITE, "You have been teleported to the prison!");        
        return 1;
    }
    return 0;
}
Reply
#5

Ye i get it, but under what should i add it in the GM ?
Reply
#6

pawn Код:
#pragma tabsize 0
At TOP of your code will ignore the warning.
Reply
#7

This

pawn Код:
if(strcmp(cmd, "/prison", true) == 0)
    {        
        SetPlayerPos(playerid, 1779.3185,-1576.1315,1734.9430);        
        SendClientMessage(playerid, COLOR_WHITE, "You have been teleported to the prison!");        
        return 1;
    }
under this

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    return 0;
}

so

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(strcmp(cmd, "/prison", true) == 0)
    {        
        SetPlayerPos(playerid, 1779.3185,-1576.1315,1734.9430);        
        SendClientMessage(playerid, COLOR_WHITE, "You have been teleported to the prison!");        
        return 1;
    }
    return 0;
}
Reply
#8

Quote:
Originally Posted by ElieJabbour
Посмотреть сообщение
Ye i get it, but under what should i add it in the GM ?
Under:
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
With your others cmd's.
Reply
#9

Quote:
Originally Posted by Jeffry
Посмотреть сообщение
pawn Код:
#pragma tabsize 0
At TOP of your code will ignore the warning.
Which is bad practise. Just my opinion.
Reply
#10

Quote:
Originally Posted by Stigg
Посмотреть сообщение
Which is bad practise. Just my opinion.

yes they have to learn how to use TAB
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)