message not showing up!! help
#1

It compiles good but ingame no message come on screen what is wrong?

pawn Код:
CMD:mycars(playerid, params[])
{
    new string[1000000];
    format(string, sizeof(string), "Car 1: %d & Car 2 %d", pInfo[playerid][pCar], pInfo[playerid][pCarr]);
    SendClientMessageEx(playerid, COL_GREEN, string);
    return 1;
}
Reply
#2

Whyyyyyyyyyyyyyyyyyyyy would you use 1000000 string arrays just to send the player a message, use smaller arrays like 32-50.
Reply
#3

new string[100000000] ? LOL
use string[128];
Reply
#4

Quote:
Originally Posted by Lidor124
Посмотреть сообщение
new string[100000000] ? LOL
use string[128];
Thats still to many arrays that message wont even support 50 why would you give it 128 lol
Reply
#5

That string is over 9000!

Change it to 128 and it will probably work :')
Reply
#6

Quote:
Originally Posted by yuvraj201
Посмотреть сообщение
It compiles good but ingame no message come on screen what is wrong?

pawn Код:
CMD:mycars(playerid, params[])
{
    new string[1000000];
    format(string, sizeof(string), "Car 1: %d & Car 2 %d", pInfo[playerid][pCar], pInfo[playerid][pCarr]);
    SendClientMessageEx(playerid, COL_GREEN, string);
    return 1;
}
Dude, do not make new strings with size like that. Make something smaller like 128 characters, in your case 64 would be also good.
Reply
#7

Using size 4077+ for arrays will make a runtime error 3: "Stack/heap collision (insufficient stack size)".

Neither 128 because it's waste when it's not even 32 characters (less).
pawn Код:
CMD:mycars(playerid, params[])
{
    new string[25];
    format(string, sizeof(string), "Car 1: %d & Car 2 %d", pInfo[playerid][pCar], pInfo[playerid][pCarr]);
    SendClientMessageEx(playerid, COL_GREEN, string);
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)