Jump to content
  • 0

Question

Posted

TutTime = 0; PlayerInfo[pTut] = 1;
                gOoc = 0; gNews = 0; gFam = 0;
                TogglePlayerControllable(i, 1);
                SetCameraBehindPlayer(i);
                TogglePlayerSpectating(i, 0);
                SetPlayerSpawn(i);
                PlayerInfo[pAccount] = 10000;
                PlayerInfo[pLevel] = 2;
                PlayerInfo[pPremiumPoints] = 10;
                ResetPlayerCash(i);
                GivePlayerCash(i,500000);
                PlayerInfo[pRob] = 20;
                SetPlayerInterior(i,0);
                SetPlayerVirtualWorld(i,0);
                TogglePlayerControllable(i,true);
                new str1[256];
                mysql_format(SQL,str1,256,"UPDATE users SET `Tutorial`='1',`Bank`='1000000',`PremiumPoints`='20' WHERE `name`='%s'",PlayerInfo[pNormalName]);
                mysql_tquery(SQL,str1,"","");
                SCM(i, COLOR_WHITE, " ");
                SCM(i, COLOR_WHITE, " ");
                SCM(i, COLOR_WHITE, " ");
                SCM(i, COLOR_WHITE, " ");
                SCM(i, COLOR_WHITE, " ");
                SCM(i, COLOR_WHITE, " ");
                SCM(i, COLOR_WHITE, " ");
                SCM(i, COLOR_WHITE, " ");
                SCM(i, COLOR_WHITE, " ");
                SCM(i, COLOR_WHITE, " ");
                SCM(i, COLOR_WHITE, " ");
                SCM(i, COLOR_WHITE, " ");
                SCM(i, COLOR_WHITE, " ");
                ShowPlayerDialog(i, DIALOG_WELCOME, DIALOG_STYLE_MSGBOX, "Welcome", "Salut! Bine ai venit in comunitatea b-Game Romania!\nSperam sa te distrezi alaturi de noi,\nPentru ca esti nou, iti oferim unele beneficii pe care le poti vedea chiar acum in chat.", "Multumesc", "");
                SCM(i, COLOR_WHITE, "------------------------------------------------------------------");
                SCM(i, COLOR_WHITE, "Pentru ca esti incepator, iti oferim cateva bonusuri:");
                SCM(i, COLOR_GREEN, "(+) $500,000");
                SCM(i, COLOR_GREEN, "(+) Levelul tau este 2");
                SCM(i, COLOR_GREEN, "(+) 20 Rob Points");
                SCM(i, COLOR_GREEN, "(+) 10 Premium Points");
                SCM(i, COLOR_WHITE, "------------------------------------------------------------------");
                
            }

Cum pot sa adaug si o masina ca bonus , adica de inceput sa iti dea si o masina

10 answers to this question

Recommended Posts

  • 0
Posted (edited)

Poftim:

pInfo[playerid][aVar][34] = Ce id are masina;
            for(new r = 0; r < 15; ++r) if(Veh[playerid][r][Owner] != pInfo[playerid][pID]) return strmid(Veh[playerid][r][Class], "Free", 0, strlen("Free"), 16), VehExORM(r, playerid),
            SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Ai primit vehiculul de tip masian, acceseaza-ti vehiculul prin comanda /v. Vehiculul va fi disponibil pana la nivel 5.");

Sper sa iti fie de ajutor !

 

EDIT: nu stiu ce gm ai. Daca ai ceva erori le lasi aici sau imi dai pm pe discord: LucaAdv#9084

Edited by LucaAdv.
s

GameMode Edited: gamemode

Servicii Scripting:

Contact:
Email: [email protected]
Discord: LucaAdv //  LHS#9084

 

  • 0
Posted
Acum 49 minute, LucaAdv. a spus:

Poftim:


pInfo[playerid][aVar][34] = Ce id are masina;
            for(new r = 0; r < 15; ++r) if(Veh[playerid][r][Owner] != pInfo[playerid][pID]) return strmid(Veh[playerid][r][Class], "Free", 0, strlen("Free"), 16), VehExORM(r, playerid),
            SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Ai primit vehiculul de tip masian, acceseaza-ti vehiculul prin comanda /v. Vehiculul va fi disponibil pana la nivel 5.");

Sper sa iti fie de ajutor !

 

EDIT: nu stiu ce gm ai. Daca ai ceva erori le lasi aici sau imi dai pm pe discord: LucaAdv#9084

C:\Users\Ionut\Desktop\GM\gamemodes\gm.pwn(15321) : error 028: invalid subscript (not an array or too many subscripts): "pInfo"
C:\Users\Ionut\Desktop\GM\gamemodes\gm.pwn(15321) : error 017: undefined symbol "playerid"
C:\Users\Ionut\Desktop\GM\gamemodes\gm.pwn(15321) : error 029: invalid expression, assumed zero
C:\Users\Ionut\Desktop\GM\gamemodes\gm.pwn(15321) : 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.
 

  • 0
Posted

pune PlayerInfo in loc de pInfo

 

Dar stiam ca gm bigzone are o functie gen InsertCar

Cauta in gm InsertCar si pune aici functia

 

COMUNITATEA MEA DE RESURSE
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
spacer.png
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
www.codeup.ro / www.codeup.ro/forum

  • 0
Posted
Acum 46 minute, Erik. a spus:

pune PlayerInfo in loc de pInfo

 

Dar stiam ca gm bigzone are o functie gen InsertCar

Cauta in gm InsertCar si pune aici functia

 

C:\Users\Ionut\Desktop\GM\gamemodes\gm.pwn(15331) : error 017: undefined symbol "playerid"
C:\Users\Ionut\Desktop\GM\gamemodes\gm.pwn(15331) : error 029: invalid expression, assumed zero
C:\Users\Ionut\Desktop\GM\gamemodes\gm.pwn(15331) : warning 215: expression has no effect
C:\Users\Ionut\Desktop\GM\gamemodes\gm.pwn(15331) : error 001: expected token: ";", but found "]"
C:\Users\Ionut\Desktop\GM\gamemodes\gm.pwn(15331) : 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.
tot nu merge..

  • 0
Posted (edited)

sau vezi daca iti merge asta

Spoiler

InsertPCar(playerid,415,Stock[5][vPrice],"Cheetah",1);

 

Edited by Erik.

COMUNITATEA MEA DE RESURSE
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
spacer.png
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
www.codeup.ro / www.codeup.ro/forum

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.