21.06.2012, 07:33
Hello,
I got a skin changer I mean /skin <id>
But I got 4 errors and I dont know how to fix it.
Here is the code:
Here are the errors:
And this is line 14:
Hope you can help me.
Thanks
BEER-samp
I got a skin changer I mean /skin <id>
But I got 4 errors and I dont know how to fix it.
Here is the code:
PHP код:
//******************************************************************************
// Skin change
//******************************************************************************
#include <a_samp>
#include <zcmd>
#include <sscanf>
COMMAND:skin(playerid,params[])
{
if ( sscanf( params, "d", params[ 0 ] ) ) return SendClientMessage( playerid, -1, ""0xCCFFDD56"* Sorry you must be type /skin <id>");
if ( !IsValidSkin( params[ 0 ] ) ) return SendClientMessage( playerid, -1, ""0xFFA600"ERROR:{FFFFFF} Invalid skin ID.");
SetPlayerSkin(playerid, params[ 0 ]);
Account[playerid][Skin] = params [ 0 ];
new String[180];
format( String, sizeof String, "* You set your skin to "0xFFFB00"%d and it has been saved into your account succesfully!", params[ 0 ] );
SendClientMessage( playerid, -1, String );
return 1;
}
#endif
PHP код:
C:\Users\Edward\Desktop\samp server mick en roy\pawno\skinc.pwn(14) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\Edward\Desktop\samp server mick en roy\pawno\skinc.pwn(14) : warning 215: expression has no effect
C:\Users\Edward\Desktop\samp server mick en roy\pawno\skinc.pwn(14) : error 001: expected token: ";", but found "-string-"
C:\Users\Edward\Desktop\samp server mick en roy\pawno\skinc.pwn(14) : warning 215: expression has no effect
C:\Users\Edward\Desktop\samp server mick en roy\pawno\skinc.pwn(14) : error 001: expected token: ";", but found ")"
C:\Users\Edward\Desktop\samp server mick en roy\pawno\skinc.pwn(14) : 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.
PHP код:
if ( sscanf( params, "d", params[ 0 ] ) ) return SendClientMessage( playerid, -1, ""0xCCFFDD56"* Sorry you must be type /skin <id>");
Thanks
BEER-samp