Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.

Wysłany: 2013-06-09, 18:19


nors56







Wiek: 28
Na forum: 4775 dni
Posty: 46
Nick w MP: Nors



Respekt: 50

Problem Z komplikacj? Prywatnych Pojazd?w. Prosze Was O pomoc.

(34) : error 030: compound statement not closed at the end of file (started at line 13)

Linia 13:
if(newstate == PLAYER_STATE_DRIVER && GetPlayerVehicleID(playerid) == CP1)


A linia 34 Jest Pusta Po ostatniej Klamrze, oco chodzi?
Ca?y Kod.

#include <a_samp>
new CP1;
new Dziobak;
public OnFilterScriptInit()
{
CP1 = AddStaticVehicle(463, 2297.3999, 1511.90002, 44.6, 0.0, 0, 1);
Dziobak = AddStaticVehicle(562, 2297.3999, 1511.90002, 44.6, 0.0, 6, 1);
return 1;
}

public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newstate == PLAYER_STATE_DRIVER && GetPlayerVehicleID(playerid) == CP1)
{
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
if(strcmp(name, "Nors.dM_aD", false))
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, 0x281aeb, "Ten pojazd nie nale?y do Ciebie");
}

if(newstate == PLAYER_STATE_DRIVER && GetPlayerVehicleID(playerid) == Dziobak)
{
GetPlayerName(playerid, name, sizeof(name));
if(strcmp(name, "Dziobak", false))
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, 0x281aeb, "Ten pojazd nie nale?y do Ciebie");
}
}
return 1;
}

Postaw piwo autorowi tego posta
 

 
Wysłany: 2013-06-09, 18:20


IgrexolonO







Wiek: 34
Na forum: 6809 dni
Posty: 1386

Piwa: 1062

Respekt: 651,8
Respekt: 651,8Respekt: 651,8

Kod:

if(newstate == PLAYER_STATE_DRIVER && GetPlayerVehicleID(playerid) == CP1)
{
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
if(strcmp(name, "Nors.dM_aD", false))
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, 0x281aeb, "Ten pojazd nie nale?y do Ciebie");
}


Po tym dodaj jeszcze jedn? klamr? "}".

Postaw piwo autorowi tego posta
 

 
Tagi: koplikacja :: prywatnych :: pojazdów.
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » PAWN Ten temat jest zablokowany bez możliwości zmiany postów lub pisania odpowiedzi

Nie możesz pisać nowych tematów
Nie możesz odpowiadać w tematach
Nie możesz zmieniać swoich postów
Nie możesz usuwać swoich postów
Nie możesz głosować w ankietach
Dodaj temat do Ulubionych
Wersja do druku