SA-MP Forums Archive
More tags! - 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: More tags! (/showthread.php?tid=569969)



More tags! - kingcrome - 04.04.2015

Код:
	SetSpawnInfo(playerid, 0, Player[playerid][LastSkin], Player[playerid][Cash], Player[playerid][LastX], Player[playerid][LastY], Player[playerid][LastZ], Player[playerid][LastA], 0, 0, 0, 0, 0, 0);
warning 213: tag mismatch
warning 202: number of arguments does not match definition


Re: More tags! - Sellize - 04.04.2015

PHP код:
SetSpawnInfo(playerid0Player[playerid][LastSkin], Player[playerid][LastX], Player[playerid][LastY], Player[playerid][LastZ], Player[playerid][LastA], 000000); 
You added an extra money parameter, which is not used in this function.


Re: More tags! - kingcrome - 04.04.2015

Thanks man alot actully however it gives me a loose intendation now


Re: More tags! - Sellize - 04.04.2015

Quote:
Originally Posted by kingcrome
Посмотреть сообщение
Thanks man alot actully however it gives me a loose intendation now
Then fix the indentation, if you could show the block of code I could do it for you.

So this:


Becomes this:
Код:
public OnPlayerConnect(playerid)
{
    if (TestIndentation())
    {
        if(TestIndentation())
        {
            if(TestIndentation())
            {
                if(TestIndentation())
                {
                }
            }
        }
    }
    return 1;
}