SA-MP Forums Archive
Need small help - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Need small help (/showthread.php?tid=497052)



Need small help - IbeatS - 24.02.2014

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




Re: Need small help - TLN - 24.02.2014

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



Re: Need small help - IbeatS - 24.02.2014

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


Re: Need small help - TLN - 25.02.2014

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);



Re: Need small help - IbeatS - 25.02.2014

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);



Re: Need small help - DarkLored - 25.02.2014

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];



Re: Need small help - itsCody - 25.02.2014

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