little help pleaze?
#1

Hello guys, i'm getting some errors here
pawn Код:
E:\GTA - San Andreas\Pawno Scripting\gamemodes\Script.pwn(330) : error 001: expected token: ")", but found "-integer value-"
E:\GTA - San Andreas\Pawno Scripting\gamemodes\Script.pwn(330) : warning 215: expression has no effect
E:\GTA - San Andreas\Pawno Scripting\gamemodes\Script.pwn(330) : error 001: expected token: ";", but found ")"
E:\GTA - San Andreas\Pawno Scripting\gamemodes\Script.pwn(330) : error 029: invalid expression, assumed zero
E:\GTA - San Andreas\Pawno Scripting\gamemodes\Script.pwn(330) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.
i don't think somethings wrong here

pawn Код:
public OnPlayerSpawn(playerid)
{
    if(gTeam[playerid] == Teams 1);
    {
        SetPlayerInterior(playerid, 0);
        SetPlayerPos(playerid, 0870,1815.6981,10.8203,193);
        return 1;
    }
    else if(gTeam[playerid] == Team 2);
    {
        SetPlayerInterior(playerid, 0);
        SetPlayerPos(playerid, 3330,1861.1024,17.9259,116);
        return 1;
    }
anyone know what the problem?
Reply
#2

Quote:
Originally Posted by Mr_Scripter
Посмотреть сообщение
Hello guys, i'm getting some errors here
pawn Код:
E:\GTA - San Andreas\Pawno Scripting\gamemodes\Script.pwn(330) : error 001: expected token: ")", but found "-integer value-"
E:\GTA - San Andreas\Pawno Scripting\gamemodes\Script.pwn(330) : warning 215: expression has no effect
E:\GTA - San Andreas\Pawno Scripting\gamemodes\Script.pwn(330) : error 001: expected token: ";", but found ")"
E:\GTA - San Andreas\Pawno Scripting\gamemodes\Script.pwn(330) : error 029: invalid expression, assumed zero
E:\GTA - San Andreas\Pawno Scripting\gamemodes\Script.pwn(330) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.
i don't think somethings wrong here

pawn Код:
public OnPlayerSpawn(playerid)
{
    if(gTeam[playerid] == Teams 1);
    {
        SetPlayerInterior(playerid, 0);
        SetPlayerPos(playerid, 0870,1815.6981,10.8203,193);
        return 1;
    }
    else if(gTeam[playerid] == Team 2);
    {
        SetPlayerInterior(playerid, 0);
        SetPlayerPos(playerid, 3330,1861.1024,17.9259,116);
        return 1;
    }
anyone know what the problem?
;'s are only valid when declaring something:

pawn Код:
public OnPlayerSpawn(playerid)
{
    if(gTeam[playerid] == 1)
    {
        SetPlayerInterior(playerid, 0);
        SetPlayerPos(playerid, 0870,1815.6981,10.8203,193);
        return 1;
    }
    else if(gTeam[playerid] == 2)
    {
        SetPlayerInterior(playerid, 0);
        SetPlayerPos(playerid, 3330,1861.1024,17.9259,116);
        return 1;
    }
    return true;
}
Reply
#3

Does the Define names Matter? i mean look at this
pawn Код:
#define PAKISTAN 1
#define USA 2
so if we add Only 1
pawn Код:
if(gTeam[playerid] == 1)
it does matter? btw

pawn Код:
public OnPlayerSpawn(playerid)
{
    if(gTeam[playerid] == 1)
    {
        SetPlayerInterior(playerid, 0);
        SetPlayerPos(playerid, 0870,1815.6981,10.8203,193);
        return 1;
    }
    else if(gTeam[playerid] == 2)
    {
        SetPlayerInterior(playerid, 0);
        SetPlayerPos(playerid, 3330,1861.1024,17.9259,116);
        return 1;
    }
    return true;
}
it's errors
pawn Код:
E:\GTA - San Andreas\Pawno Scripting\gamemodes\Script.pwn(333) : warning 202: number of arguments does not match definition
E:\GTA - San Andreas\Pawno Scripting\gamemodes\Script.pwn(339) : warning 202: number of arguments does not match definition
E:\GTA - San Andreas\Pawno Scripting\gamemodes\Script.pwn(374) : warning 217: loose indentation
E:\GTA - San Andreas\Pawno Scripting\gamemodes\Script.pwn(520) : error 017: undefined symbol "sscanf"
E:\GTA - San Andreas\Pawno Scripting\gamemodes\Script.pwn(519) : warning 203: symbol is never used: "ammount"
E:\GTA - San Andreas\Pawno Scripting\gamemodes\Script.pwn(519) : warning 203: symbol is never used: "targetid"
E:\GTA - San Andreas\Pawno Scripting\gamemodes\Script.pwn(554) : warning 203: symbol is never used: "SetPlayerToTeamColor"
E:\GTA - San Andreas\Pawno Scripting\gamemodes\Script.pwn(554) : warning 203: symbol is never used: "ret_memcpy"
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


1 Error.
and when i change it to

pawn Код:
public OnPlayerSpawn(playerid)
{
    if(gTeam[playerid] == PAKISTAN 1)
    {
        SetPlayerInterior(playerid, 0);
        SetPlayerPos(playerid, 0870,1815.6981,10.8203,193);
        return 1;
    }
    else if(gTeam[playerid] == USA 2)
    {
        SetPlayerInterior(playerid, 0);
        SetPlayerPos(playerid, 3330,1861.1024,17.9259,116);
        return 1;
    }
    return true;
}
it's errors

pawn Код:
E:\GTA - San Andreas\Pawno Scripting\gamemodes\Script.pwn(330) : error 001: expected token: ")", but found "-integer value-"
E:\GTA - San Andreas\Pawno Scripting\gamemodes\Script.pwn(330) : warning 215: expression has no effect
E:\GTA - San Andreas\Pawno Scripting\gamemodes\Script.pwn(330) : error 001: expected token: ";", but found ")"
E:\GTA - San Andreas\Pawno Scripting\gamemodes\Script.pwn(330) : error 029: invalid expression, assumed zero
E:\GTA - San Andreas\Pawno Scripting\gamemodes\Script.pwn(330) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.
Reply
#4

after chaning some

pawn Код:
E:\GTA - San Andreas\Pawno Scripting\gamemodes\Script.pwn(334) : warning 202: number of arguments does not match definition
E:\GTA - San Andreas\Pawno Scripting\gamemodes\Script.pwn(340) : warning 202: number of arguments does not match definition
E:\GTA - San Andreas\Pawno Scripting\gamemodes\Script.pwn(556) : warning 203: symbol is never used: "SetPlayerToTeamColor"
E:\GTA - San Andreas\Pawno Scripting\gamemodes\Script.pwn(556) : warning 203: symbol is never used: "ret_memcpy"
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


4 Warnings.
Reply
#5

Don't add the number after USA & PAKISTAN. They are already defined as a number.

When you compile your mode, if(gTeam[playerid] == PAKISTAN) will be replaced with if(gTeam[playerid] == 1).

pawn Код:
public OnPlayerSpawn(playerid)
{
    if(gTeam[playerid] == PAKISTAN)
    {
        SetPlayerInterior(playerid, 0);
        SetPlayerPos(playerid, 0870,1815.6981,10.8203,193);
        return 1;
    }
    else if(gTeam[playerid] == USA)
    {
        SetPlayerInterior(playerid, 0);
        SetPlayerPos(playerid, 3330,1861.1024,17.9259,116);
        return 1;
    }
    return true;
}
Reply
#6

it still gived the same 4 errors just fixed now little more
pawn Код:
E:\GTA - San Andreas\Pawno Scripting\gamemodes\Script.pwn(555) : warning 203: symbol is never used: "SetPlayerToTeamColor"
E:\GTA - San Andreas\Pawno Scripting\gamemodes\Script.pwn(555) : warning 203: symbol is never used: "ret_memcpy"
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


2 Warnings.
Reply
#7

Sorry for double posting but here

pawn Код:
E:\GTA - San Andreas\Pawno Scripting\gamemodes\Script.pwn(555) : warning 203: symbol is never used: "ret_memcpy"
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


1 Warning.
i don't have something like "ret_memcpy" in my script...
Reply
#8

Quote:
Originally Posted by Mr_Scripter
Посмотреть сообщение
Sorry for double posting but here

pawn Код:
E:\GTA - San Andreas\Pawno Scripting\gamemodes\Script.pwn(555) : warning 203: symbol is never used: "ret_memcpy"
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


1 Warning.
i don't have something like "ret_memcpy" in my script...
Something you've included has the function in it, it's not really a serious matter only telling you that you haven't used it yet.
Reply
#9

Lol...
Dudb
Thanks +rep for you all
Reply
#10

Try adding #pragma unused ret_memcpy at the top of your script.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)