-
Posts
49 -
Joined
-
Last visited
Content Type
Profiles
Forums
News
Documentation
Posts posted by Smulyz
-
-
Zici ca sunt spaghete in script ul asta așa are forma dar cred că ai depus efort deci bravo
-
foarte frumos +1
-
6 minutes ago, Akan said:
function IsABike(vehicleid) { switch(GetVehicleModel(vehicleid)) { case 481, 509, 510: return 1; } return 0; } function IsAMotorcycle(vehicleid) { switch(GetVehicleModel(vehicleid)) { case 448, 461, 462, 463, 468, 471, 521, 522, 523, 571, 581, 586: return 1; } return 0; } function IsABoat(vehicleid) { switch(GetVehicleModel(vehicleid)) { case 430, 446, 452, 453, 454, 472, 473, 484, 493, 595: return 1; } return 0; } function IsAPlane(vehicleid) { switch(GetVehicleModel(vehicleid)) { case 417, 425, 447, 460, 464, 465, 469, 476, 487, 488, 497, 501, 511, 512, 513, 519, 520, 548, 553, 563, 577, 592, 594: return 1; } return 0; }
Ai uitat acoladele la primul switch.
Si ai uitat niste virgule in case-uri...+1 mereu ma ajuta si e corect mereu
-
erori:
C:/Users/Hawai/OneDrive/Desktop/GM PRINCIPAL/gamemodes/main.pwn(118) : error 001: expected token: "{", but found "case"
C:/Users/Hawai/OneDrive/Desktop/GM PRINCIPAL/gamemodes/main.pwn(119) : error 002: only a single statement (or expression) can follow each "case"
C:/Users/Hawai/OneDrive/Desktop/GM PRINCIPAL/gamemodes/main.pwn(119) : warning 215: expression has no effect
C:/Users/Hawai/OneDrive/Desktop/GM PRINCIPAL/gamemodes/main.pwn(120) : warning 209: function "IsABike" should return a value
C:/Users/Hawai/OneDrive/Desktop/GM PRINCIPAL/gamemodes/main.pwn(131) : error 001: expected token: ":", but found "-integer value-"
C:/Users/Hawai/OneDrive/Desktop/GM PRINCIPAL/gamemodes/main.pwn(131) : warning 215: expression has no effect
C:/Users/Hawai/OneDrive/Desktop/GM PRINCIPAL/gamemodes/main.pwn(131) : warning 215: expression has no effect
C:/Users/Hawai/OneDrive/Desktop/GM PRINCIPAL/gamemodes/main.pwn(131) : warning 215: expression has no effect
C:/Users/Hawai/OneDrive/Desktop/GM PRINCIPAL/gamemodes/main.pwn(131) : warning 215: expression has no effect
C:/Users/Hawai/OneDrive/Desktop/GM PRINCIPAL/gamemodes/main.pwn(131) : warning 215: expression has no effect
C:/Users/Hawai/OneDrive/Desktop/GM PRINCIPAL/gamemodes/main.pwn(131) : warning 215: expression has no effect
C:/Users/Hawai/OneDrive/Desktop/GM PRINCIPAL/gamemodes/main.pwn(131) : warning 215: expression has no effect
C:/Users/Hawai/OneDrive/Desktop/GM PRINCIPAL/gamemodes/main.pwn(131) : warning 215: expression has no effect
C:/Users/Hawai/OneDrive/Desktop/GM PRINCIPAL/gamemodes/main.pwn(131) : error 001: expected token: ";", but found ":"
C:/Users/Hawai/OneDrive/Desktop/GM PRINCIPAL/gamemodes/main.pwn(133) : error 010: invalid function or declaration
C:/Users/Hawai/OneDrive/Desktop/GM PRINCIPAL/gamemodes/main.pwn(138) : error 001: expected token: ":", but found "."
C:/Users/Hawai/OneDrive/Desktop/GM PRINCIPAL/gamemodes/main.pwn(138) : error 029: invalid expression, assumed zero
C:/Users/Hawai/OneDrive/Desktop/GM PRINCIPAL/gamemodes/main.pwn(138) : error 029: invalid expression, assumed zero
C:/Users/Hawai/OneDrive/Desktop/GM PRINCIPAL/gamemodes/main.pwn(138) : fatal error 107: too many error messages on one linelinile gen tot codu
function IsABike(vehicleid) {
switch(GetVehicleModel(vehicleid))
case 481, 509, 510: return 1;
return 0;
}function IsAMotorcycle(vehicleid) {
switch(GetVehicleModel(vehicleid)) {
case 448, 461, 462, 463, 468, 471, 521, 522, 523, 571, 581, 586: return 1;
}
return 0;
}function IsABoat(vehicleid) {
switch(GetVehicleModel(vehicleid)) {
case 430, 446 452, 453, 454, 472, 473, 484, 493, 595: return 1;
}
return 0;
}function IsAPlane(vehicleid) {
switch(GetVehicleModel(vehicleid)) {
case 417, 425, 447, 460, 464, 465, 469, 476, 487, 488, 497, 501, 511, 512, 513, 519. 520, 548, 553, 563, 577, 592, 594:return 1;
}
return 0;
} -
ma inregistrez sau ma loghez pe server si nu ma pot misca ma tine pe loc
-
functia
public OnPlayerSpawn(playerid)
{SetPlayerSkin(playerid, PlayerInfo[playerid][pSkin]);
SetCameraBehindPlayer(playerid);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerInterior(playerid, 0);
SetPlayerHealth(playerid, 100.0);
SpawnPlayer(playerid);
SetPlayerPos(playerid, 2007.6338, 1167.8236, 10.8203);
SetPlayerFacingAngle(playerid, 277.4187);
return true;
}gen imi arata albastru si un cap stricat
-
1 hour ago, Akan said:
Sintaxa corecta este:
foreach(new i : Player)
+1 best cel mai bunn
-
am rezolvat majoritatea erorilor dar acum imi da erorile astea
C:/Users/Hawai/OneDrive/Desktop/GM PRINCIPAL/gamemodes/main.pwn(324) : error 017: undefined symbol "playerid"
C:/Users/Hawai/OneDrive/Desktop/GM PRINCIPAL/gamemodes/main.pwn(324) : error 017: undefined symbol "Iterator@iterator"
C:/Users/Hawai/OneDrive/Desktop/GM PRINCIPAL/gamemodes/main.pwn(324) : error 036: empty statement
C:/Users/Hawai/OneDrive/Desktop/GM PRINCIPAL/gamemodes/main.pwn(324) : fatal error 107: too many error messages on one linelinia:
foreach(Player : iterator) {
-
-
CMD:adminchat(playerid, params[])
-
{
-
new mesaj[128], string[128]; asa era dar imi arata in <0xfeff>
-
-
am schimbat o eu in alb dar probabil nu stiu ce inseamna asta
-
C:/Users/Hawai/OneDrive/Desktop/GM PRINCIPAL/gamemodes/main.pwn(312) : error 001: expected token: "-identifier-", but found "-integer value-"
C:/Users/Hawai/OneDrive/Desktop/GM PRINCIPAL/gamemodes/main.pwn(312) : error 029: invalid expression, assumed zero
C:/Users/Hawai/OneDrive/Desktop/GM PRINCIPAL/gamemodes/main.pwn(312) : warning 215: expression has no effect
C:/Users/Hawai/OneDrive/Desktop/GM PRINCIPAL/gamemodes/main.pwn(312) : error 001: expected token: ";", but found "]"
C:/Users/Hawai/OneDrive/Desktop/GM PRINCIPAL/gamemodes/main.pwn(312) : fatal error 107: too many error messages on one linelinie
new mesaj[128], string <0xf9f9f9> [128];
-
8 minutes ago, Akan said:
Inlocuieste
cache_get_field_name_int
Cu
cache_get_value_name_int
+1
-
linie
cache_get_field_name_int(0, "Admin", PlayerInfo[playerid][pAdmin]);
EROARE
C:/Users/Hawai/OneDrive/Desktop/GM PRINCIPAL/gamemodes/main.pwn(269) : error 017: undefined symbol "cache_get_field_name_int"
Pawn compiler 3.10.10 Copyright (c) 1997-2006, ITB CompuPhase
-
cum se scrie aceasta functie ?
-
linia
new time = ObtainTimer(DelayCommand[playerid][8]);
erori
C:/Users/Hawai/OneDrive/Desktop/GM PRINCIPAL/gamemodes/main.pwn(289) : error 017: undefined symbol "ObtainTimer"
C:/Users/Hawai/OneDrive/Desktop/GM PRINCIPAL/gamemodes/main.pwn(289) : warning 215: expression has no effect
C:/Users/Hawai/OneDrive/Desktop/GM PRINCIPAL/gamemodes/main.pwn(289) : error 001: expected token: ";", but found "]"
C:/Users/Hawai/OneDrive/Desktop/GM PRINCIPAL/gamemodes/main.pwn(289) : error 029: invalid expression, assumed zero
C:/Users/Hawai/OneDrive/Desktop/GM PRINCIPAL/gamemodes/main.pwn(289) : fatal error 107: too many error messages on one line -
cum pot sa pun sa mearga la toti admini 1-7 ?
-
tot zice ca n-am acces
-
da gen nici daca am admin nu merge
-
19 minutes ago, qSorin_ said:
Incearca asta:
CMD:fly(playerid, params[])
{
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0xf9f9f9ff, "Nu ai acces la aceasta comanda!");
StartFly(playerid);
InitFly(playerid);
return SendClientMessage(playerid, 0xf9f9f9ff, "Ai activat FlyMode!");
}
CMD:stopfly(playerid, params[])
{
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0xf9f9f9ff, "Nu ai acces la aceasta comanda!");
StopFly(playerid);
return SendClientMessage(playerid, 0xf9f9f9ff, "Ai dezactivat FlyMode!");
}+1 a mers
-
linia de cod
CMD:Fly(players, params[])
{
if(IsPlayerAdmin(playerid))
{
StartFly(playerid);
InitFly(playerid);
SendClientMessage(playerid, {f9f9f9}, "Ai activat FlyMode!");
}
else
{
SendClientMessage(playerid, {f9f9f9}, "Nu ai acces la aceasta comanda!");
}
return 1;
}
CMD:stopfly(playerid, paramsp[])
{
if(IsPlayerAdmin(playerid))
{
StopFly(playerid);
SendClientMessage(playerid, {f9f9f9}, "Ai dezactivat FlyMode!");
}
else
{
SendClientMessage(playerid, {f9f9f9}, "Nu ai acces la aceasta comanda!");
}
return 1;
}erori
C:/Users/Hawai/OneDrive/Desktop/GM PRINCIPAL/gamemodes/main.pwn(313) : error 017: undefined symbol "playerid"; did you mean "players"?
C:/Users/Hawai/OneDrive/Desktop/GM PRINCIPAL/gamemodes/main.pwn(315) : error 017: undefined symbol "playerid"; did you mean "players"?
C:/Users/Hawai/OneDrive/Desktop/GM PRINCIPAL/gamemodes/main.pwn(316) : error 017: undefined symbol "playerid"; did you mean "players"?
C:/Users/Hawai/OneDrive/Desktop/GM PRINCIPAL/gamemodes/main.pwn(317) : error 017: undefined symbol "playerid"; did you mean "players"?
C:/Users/Hawai/OneDrive/Desktop/GM PRINCIPAL/gamemodes/main.pwn(321) : error 017: undefined symbol "playerid"; did you mean "players"?
C:/Users/Hawai/OneDrive/Desktop/GM PRINCIPAL/gamemodes/main.pwn(330) : error 017: undefined symbol "f9f9f9"
C:/Users/Hawai/OneDrive/Desktop/GM PRINCIPAL/gamemodes/main.pwn(334) : error 017: undefined symbol "f9f9f9"
Pawn compiler 3.10.10 Copyright (c) 1997-2006, ITB CompuPhase
-
imi dadusem seama
-
Și cum îmi dai admin din baza
-
27 minutes ago, Akan said:
Ai inclus un procesor de comenzi?
De exemplu ZCMD: #include <zcmd>+1
-
RainBow Vehicle
in Tutoriale
Posted
mdaa ;]]