/setskin help
#7

Underneath SetPlayerSkin, simply declare the string "fstr". This is a very common and basic error. Before you try going more advanced, you should really learn these basics.

Declaration is done by using the "new"-keyword:
pawn Код:
new
    myInteger,
    myArray[ numCells ],
    bool:myBool,
    Float:myFloat;
Here are the most used standard variables.

A string is simply an array, so to easily fix this problem, you need to declare "fstr" as an array, unless you want a tag mismatch warning + a non-functional code:
pawn Код:
new
    fstr[ 128 ]; //128 cells = 127 characters + '\0' - which is the max output for in-game chat in SA-MP
And there you go. All four errors should now be gone, and the code should be fully functional.
Reply


Messages In This Thread
/setskin help - by Michael_Cuellar - 20.12.2012, 07:58
Re: /setskin help - by eesh - 20.12.2012, 08:04
Re: /setskin help - by Marven - 20.12.2012, 08:12
Re: /setskin help - by Michael_Cuellar - 20.12.2012, 08:19
Re: /setskin help - by Michael_Cuellar - 20.12.2012, 08:22
Re: /setskin help - by eesh - 20.12.2012, 08:31
Re: /setskin help - by LarzI - 20.12.2012, 08:31
Re: /setskin help - by Michael_Cuellar - 20.12.2012, 08:45
Re: /setskin help - by LarzI - 20.12.2012, 08:54
Re: /setskin help - by Marven - 20.12.2012, 09:01

Forum Jump:


Users browsing this thread: 1 Guest(s)