22.05.2015, 18:27
Something I noticed...
PHP код:
new SpecID[MAX_PLAYERS];
new id;
new string[44];
GetPlayerPos( playerid, Save_Position[ playerid ][ 0 ], Save_Position[ playerid ][ 1 ], Save_Position[ playerid ][ 2 ] );
GetPlayerFacingAngle( playerid, Save_Position[ playerid ][ 3 ] );
InSpectate{ playerid } = true;
TogglePlayerSpectating(playerid, 1);
SpecID[playerid] = id;
return 1;
PHP код:
new SpecID[MAX_PLAYERS];
new id;
new string[44];
GetPlayerPos( playerid, Save_Position[ playerid ][ 0 ], Save_Position[ playerid ][ 1 ], Save_Position[ playerid ][ 2 ] );
GetPlayerFacingAngle( playerid, Save_Position[ playerid ][ 3 ] );
InSpectate[ playerid ] = true; // You put the wrong brackets.
TogglePlayerSpectating(playerid, 1);
SpecID[playerid] = id;
return 1;