Need small help
#1

here is code with 2 Error
pawn Код:
public OnGameModeInit()
{
1588.3523, -1638.0692, 14.7826
    ConnectNPC("Marco_Wootson", "Marco_Wootson");

    pdgate = CreateObject(969,1588.3523, -1638.0692,14.7826,0.0000000,0.0000000,0.0000000); //object(electricgate) (PDGateMap)
and the errors here
Quote:

C:\Documents and Settings\aa\My Documents\Downloads\Compressed\CC-RP\scripts maps\globalstreets.pwn(11796) : error 001: expected token: ";", but found "-identifier-"
C:\Documents and Settings\aa\My Documents\Downloads\Compressed\CC-RP\scripts maps\globalstreets.pwn(11798 ) : error 029: invalid expression, assumed zero

Reply
#2

Remove the line above ConnectNPC
pawn Код:
1588.3523, -1638.0692, 14.7826
Reply
#3

thanks for your help but it remove one error but one is remain here is the code
pawn Код:
pdgate = CreateObject(969,1588.3523, -1638.0692,14.7826,0.0000000,0.0000000,0.0000000); //object(electricgate) (PDGateMap)

C:\Documents and Settings\aa\My Documents\Downloads\Compressed\CC-RP\scripts maps\globalstreets.pwn(11797) : error 029: invalid expression, assumed zero
Reply
#4

This should work, at least it works for me.
pawn Код:
new pdgate;
public OnGameModeInit()
{
    pdgate = CreateObject(969, 1588.3523, -1638.0692, 14.7826,0.0000000, 0.0000000, 0.0000000);
Reply
#5

it make errors
C:\Documents and Settings\aa\My Documents\Downloads\Compressed\CC-RP\scripts maps\globalstreets.pwn(11792) : error 020: invalid symbol name ""
C:\Documents and Settings\aa\My Documents\Downloads\Compressed\CC-RP\scripts maps\globalstreets.pwn(11793) : error 001: expected token: ";", but found "public"
C:\Documents and Settings\aa\My Documents\Downloads\Compressed\CC-RP\scripts maps\globalstreets.pwn(11795) : error 029: invalid expression, assumed zero

pawn Код:
new pdgate;
public OnGameModeInit()
{
pdgate = CreateObject(969, 1588.3523, -1638.0692, 14.7826,0.0000000, 0.0000000, 0.0000000);
Reply
#6

do this

this code will define the numbers of the gates you want you can change it to what ever number you want if you want to add some more
pawn Код:
new pdgate[2];
Reply
#7

pawn Код:
new pdgate;
public OnGameModeInit()
{
    pdgate = CreateObject(969, 1588.3523, -1638.0692, 14.7826,0.0000000, 0.0000000, 0.0000000);
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)