SA-MP Forums Archive
A Little bit! help please =]! - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: A Little bit! help please =]! (/showthread.php?tid=246321)



A Little bit! help please =]! - Ben7544 - 03.04.2011

I got 4 Errors =[ due to some script I made..
Here's the line :

PHP код:
    if(IsPlayerHoldingObject(playerid)) StopPlayerHoldingObject(playerid); 
The errors :

PHP код:
C:\Documents and Settings\gidon\щемзп дтбегд\дчбцйн щм бп\False RolePlay v0.5\filterscripts\Hss.pwn(64) : error 001expected token")"but found ";"
C:\Documents and Settings\gidon\щемзп дтбегд\дчбцйн щм бп\False RolePlay v0.5\filterscripts\Hss.pwn(64) : error 036: empty statement
C
:\Documents and Settings\gidon\щемзп дтбегд\дчбцйн щм бп\False RolePlay v0.5\filterscripts\Hss.pwn(64) : error 029invalid expressionassumed zero
C
:\Documents and Settings\gidon\щемзп дтбегд\дчбцйн щм бп\False RolePlay v0.5\filterscripts\Hss.pwn(64) : fatal error 107too many error messages on one line
Compilation aborted
.Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase
4 Errors

The whole command ( if needed ) :

PHP код:
  if(!strcmp(cmd"/rsuitcase"true))
    {
        if(
IsPlayerConnected(playerid))
        {
            if(
logeed[playerid])
            {
                if(
dini_Int(File(playerid),"SuitCase") == 1)
                {
                    if(
IsPlayerHoldingObject(playerid)) StopPlayerHoldingObject(playerid);
                    
PlayerInfo[playerid][suitcaseon] = 1;
                }
            }
        }
        return 
1;
    } 
Thank ya'll.


Re: A Little bit! help please =]! - linuxthefish - 03.04.2011

What are the 4 errors, and is that the full script? :/


Re: A Little bit! help please =]! - Ben7544 - 03.04.2011

Really sorry about that =[, here's edit.

Btw, were playing on your server, such nice one .


Re: A Little bit! help please =]! - aircombat - 03.04.2011

pawn Код:
if(!strcmp(cmd, "/rsuitcase", true))
    {
        if(IsPlayerConnected(playerid))
        {
            if(logeed[playerid])
            {
                if(dini_Int(File(playerid),"SuitCase") == 1)
                {
                    if(IsPlayerHoldingObject(playerid)) return StopPlayerHoldingObject(playerid);
                    PlayerInfo[playerid][suitcaseon] = 1;
                }
            }
        }
        return 1;
    }



Re: A Little bit! help please =]! - Marricio - 03.04.2011

Quote:

This function was removed in SA-MP 0.3c. check IsPlayerAttachedObjectSlotUsed

https://sampwiki.blast.hk/wiki/IsPlayerA...ObjectSlotUsed