Jump to content
  • 0

pawn compiler has stop working


Question

Posted (edited)

Am incercat sa fac la un sistem de pet sa poti selecta ce animal vrei, dar cand compilez imi da pawn compiler has stop working nu vad ce limita am incalcat!

Spoiler

In gamemode:

                } case 4:
                    format(string, sizeof(string), "{04d08c}Papagal.");
                    SetPlayerAttachedObject(playerid, 0, 19078, 17, 0.021065, -0.100726, 0.143000, 357.120239, 1.712298, 349.232513, 1.000000, 1.000000, 1.120420 );
                    Update(playerid, pPetTypex);
                    }
                    else {
                        format(string, sizeof(string), "{04d08c}Rechin.");
                        etPlayerAttachedObject(playerid, 1, 1608, 17, 0.021065, -0.100726, 0.143000, 357.120239, 1.712298, 349.232513, 1.000000, 1.000000, 1.120420 );
                        Update(playerid, pPetTypex);
                    }
                    else {
                        format(string, sizeof(string), "{04d08c}Hipopotam.");
                        SetPlayerAttachedObject(playerid, 2, 1371, 17, 0.021065, -0.100726, 0.143000, 357.120239, 1.712298, 349.232513, 1.000000, 1.000000, 1.120420 );    
                        Update(playerid, pPetTypex);
                    }    
                }
                
                
                
Culoare langa: "%s" am pus "{04d08c}%s" (la mai multe linii)

Din asta: format(string, sizeof(string), " {6AD439}%s{FFFFFF} - level {6AD439}%d{FFFFFF}",PlayerInfo[playerid][pPetName],PlayerInfo[playerid][pPetLevel]);
In asta: format(string, sizeof(string), " {6AD439}%s{FFFFFF} - lvl {6AD439}%d{FFFFFF}",PlayerInfo[playerid][pPetName],PlayerInfo[playerid][pPetLevel]);


Asta(tot asta la inca o comanda "/pet"):  format(string, sizeof(string),"Status\t{0ba900}Trezit\nNume pet\t{26B309}%s\nBeneficii pet\nUpgradeaza pet\t%d/120 pet points\nTip Pet",PlayerInfo[playerid][pPetName],PlayerInfo[playerid][pPetPoints][pPetType]);

La pInfo am adaugat  pPetType
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Si in folderul systems.inc:

case pPetTypex: format(var, sizeof(var), "UPDATE `users` SET `PetType`='%d' WHERE `ID`='%d'",PlayerInfo[playerid][pPetType], PlayerInfo[playerid][pSQLID]);

#define pPetTypex            91

si imi da asta cand compilez:
=======================================
Pawno compiler has stop working!
===================================

[Finished in 28.5s with exit code 3221225477]
[cmd: ['pawncc.exe', '-i includes', 'E:\\Gamemodes\\burned.ro\\gamemodes\\GM.pwn', '-;+']]
[dir: E:\Gamemodes\burned.ro\gamemodes]
[path: C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\]

 

Edited by caltabos

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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.